hanker-library
v0.0.80
Published
## Core Technologies
Readme
Hanker Component Library
Core Technologies
- React 18+
- Vite
- Typescript
- TailwindCSS
- PostCSS
- ESLint
- Husky
How to Build and Manage Components?
Creating New Components
- Create individual Component files in the
/componentsdirectory - Export all of these components in the
/components/index.tsfile, this is where the build instructions are pulling components from
Editing Components
- Simply edit them
How to deploy changes
- Once your changes have been made and tested locally, increment the version number in the
package.jsonfile. This is a requirement for the NPM Registry. Use Semantic Versioning as much as possible. - Run
npm run buildto build the latest version of the package with your updates. - In the terminal, from the top-level project directory
/hanker-library, log in to your NPM account withnpm auth login. - Run
npm publish
How to consume new changes?
- Update the package manually from the CONSUMING APPLICATION
- Increment the
hanker-libraryindependenciesto the new version. - Run a new
npm installoryarn
- Increment the
Instructions for Consumption
- Install the package with NPM or Yarn:
npm i hanker-library
- In the Consuming Application's
tailwind.config.jsfile, add the following line in thecontentblock:
"./node_modules/hanker-library/**/*.{js,ts,jsx,tsx}"
- Import and use components as normal in your files
- Override the imported components styling using the Tailwind Config
Local Development
npm run [command]will run the Vite build commands under the hood, checkpackage.jsonfor full details.npm run devto test locally
