Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 753 Bytes

README.md

File metadata and controls

51 lines (35 loc) · 753 Bytes

Start you own library

git clone https://github.com/SC5/ds-workshop-storybook-boilerplate.git
cd ds-workshop-storybook-boilerplate
rm -rf .git
git init

Development

Run Storybook

npm install
npm start

Tools

Adding a new component

You can add components by using this command

npm run create-component MyComponent

It will create a new folder for the component and basic files for styling and documenting.

Build the library

npm run build

Try out at the demo page

npm run demo

Edit sources in demo folder.

Build and publish documentation

You can build Storybook documentation as a static website and publish to GH pages.

npm run build-storybook
npm run deploy-storybook