kookaat-front-core
v9.1.4
Published
Core package for kookaat's frontend frameworks
Readme
Kookaat Frontend Core Package
This React library contains the following modules that will be consumed in Kookaat front-end projects.
Utility Modules:
- Cache Manager
- Push Notification Manager
- In-App Notification Manager
- Helpers
API Modules:
- API Endpoints
- Types and Interfaces
Hooks
- React Custom Hooks
Assets
- Icons
- etc.
Components
This package follows Atomic Design principles and contains the following components:
- Atoms
- Molecules
- Organisms
You need to add the following line to
contentfield in yourtailwind.config.jsfile load components' styles because their tailwind styles are not prebuilt:
content: [
...// other paths
"path/to/node_modules/kookaat-front-core/components/**/*.{js,ts,jsx,tsx}",
];Make sure to replace path/to/node_modules with the actual path to your node_modules directory.
- Also, add any custom theme styles that has been used in components to your
tailwind.config.jsfile.
CSS files
- This package exports a
typography.cssfile that contains the typography styles used in Kookaat projects.
Publishing Workflow
Check package.json Files
Check if a new directory has been added. If so, add new directories tofilesinpackage.jsonCommit Changes
Commit changes with proper messagePublish Patches
Runpublish:patch/publish:minor/publish:majorscript for increasing version and publishing package to npm registry.Push
Finally, push commits and tags to remote repository
Push Notification Module
serviceWorker.ts in Push Notification Module uses /sw/icon.png and /sw/badge.png URLs for providing icon and badge to push event.
