storybook-react-demo
v1.1.0
Published
A storybook react demonstration for #ATO2017
Downloads
8
Readme
storybook-react-demo
This is the resulting project for my All Things Open presentation, "Secrets to Modular Component Design Systems".
Storybook Demo: https://priley86.github.io/storybook-react-demo/
Getting Started
npm install --save storybook-react-demo
Then import UI modules as ES6 modules:
import { Button } from 'storybook-react-demo'
Storybook UI Development
This project uses React Storybook to test and demo new React UI components.
How to use Storybook locally:
npm i
npm run storybook
How to deploy storybook to github pages in your fork:
npm run build-storybook
npm run storybook:deploy
To deploy Storybook to a remote other than origin
, pass a --remote
flag to npm run storybook:deploy
.
For example, to deploy to your upstream
remote:
npm run storybook:deploy -- --remote=upstream
To deploy Storybook to a target branch and serve with rawgit instead of gh-pages, pass --branch
flag
to npm run storybook:deploy
.
For example, to deploy to feature-branch
target:
npm run storybook:deploy -- --branch=feature-branch