0.0.7 • Published 11 months ago
storybook-proof-of-concept-2 v0.0.7
Developing
First, install dependencies with npm install
(or pnpm install
or yarn
), start a Storybook development server:
npm run storybook
# or start the server and open the app in a new browser tab
npm run storybook -- --open
Everything inside src/lib
is part of your library, evetything inside src/stories
is a part of Storybook, everything inside src/routes
can be used as a showcase or preview app.
Building
To build your library:
npm run package
To create a production version of your Storybook app:
npm run build-storybook
Publishing
Go into the package.json
and give your package the desired name through the "name"
option. Also consider adding a "license"
field and point it to a LICENSE
file which you can create from a template (one popular option is the MIT license).
To publish your library to npm:
npm publish