The Learn Storybook design system
The Learn Storybook design system is a subset of the full Storybook design system, created as a learning resource for those interested in learning how to write and publish a design system using best in practice techniques.
Learn more at Learn Storybook.
Build the app before publishing to npm registry.
Step to test locally before publishing.
- After making changes, increment version number in package.json file.
- Go to terminal run cmd for mac: yarn publish-build / windows: yarn win-build, it will build the project.
- Go to root folder in terminal run command: yarn pack, it will create a tgz file in the root directory.
- Copy the path [not relative] of the just created tgz file.
- Go to the project where we want to use it.
- Stop running the project and run command: yarn add [path/to/tgz file] and restart the project, changes will reflect in the project where ever it is getting used.
Want to test again repeat the steps.
- After testing revert everything which has been done for the testing purpose.