- Storybook:
-
Storybook gives you an easy way to see and use your components while working on them in your library project, without having to build an unnecessary testing page just to display them.
npm run storybook # runs the host Storybook application locally for quick and easy testing
-
Now, anytime you make a change to your library or the stories, the storybook will live-reload your local dev server so you can iterate on your component in real-time.
-
npm run build
: builds the library todist
-
npm run lint
: runs eslint. -
npm run storybook
: runs the host Storybook application locally for quick and easy testing
publish to GitHub Packages registry:
- you need to have this in your ~/.npmrc
registry=https://registry.npmjs.org/
@YOUR_GITHUB_USERNAME:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=YOUR_AUTH_TOKEN
and run:
npm publish