@eluniverso/eu-components
v1.0.34
Published
A skeleton to create your own React component library using Rollup, TypeScript, Styled Components and Storybook
Downloads
58
Readme
EU Components
This project skeleton was created to help people get started with creating their own React component library using:
It also features:
- Storybook to help you create and show off your components
- Jest and React Testing Library enabling testing of the components
Development
Testing
npm run test
Building
npm run build
Storybook
To run a live-reload Storybook server on your local machine:
npm run storybook
To export your Storybook as static files:
npm run storybook:export
How to test locally
1 - Generate tar.gz file
npm pack #this will create a tar.gz file Example [eluniverso-eu-components-0.0.1.tgz]
2 - link to the other project
# You must use an absolute path.
npm install /absolute/path/eluniverso-eu-components-0.0.1.tgz
Publish in NPM
1 - Update your local master branch
git pull origin master
2 - Set a new version
npm version 1.0.32 #check current version in package.json and increment + 1
git push origin master
3 - Create a new release on github
4 - On the new release page, write the version number just created with the v letter at the beginning, ie v1.0.32
5 - Publish the new release and wait for Github actions to trigger npm publishing
Contributors ✨
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!