crayond-components-library v0.0.9
NPM Package Boilerplate
This boilerplate is designed to help you quickly set up a npm package using Vite, which allows you to build and publish your package as a reusable library of components, functions, and other code.
Tech Stack
- Framework: React
- Type Checking: Typescript
- Tooling: Es-lint, prettier, lint-staged, husky
- Component Documentation: Storybook
- Build Tool: Vite
To Run Locally
Clone the project
git clone https://gitlab.com/crayond_knowledge_repo/npm-package-boilerplate.gitGo to the project directory
cd npm-package-boilerplateInstall dependencies
npm installStart the server
npm run devRun the storybook
npm run storybookTo Publish the package
npm run publishHere we using np for publishing npm package. The np package is a command line tool that simplifies the process of publishing npm packages
If it's not works install the np package globally,
npm install -g npMake sure you are logged in to the npm registry on your local machine. You can check if you are logged in by running npm whoami. If you are not logged in, you can log in by running npm login.
Authors
Feedback
If you have any feedback, please reach out to the authors
Contributing
Contributions are always welcome!