FRST Storybook
IMPORTANT
- A pasta ./dist está comitada porque é a biblioteca de componentes (gerada por
npm run build
), idealmente nós fariamos um CI/CD e publicariamos essa pasta junto com o package.json via NPM ou similar - Para usar os componentes em outros projetos: (pode pedir para autorizar)
npm i --save git+git@github.com:FRST-Falconi/storybook.frstfalconi.com.git#master
How to run locally
npm install
npm run sb
Creating new components
After creating a new component, you must load it into ./index.tsx
in order to add it into the new version.
import { default as NewComponent } from './src/components/NewComponent'
How gen new version (./dist)
Update package.json
version number, then
npm run build
Deploy to github.io
npm run deploy-sb
Learning Storybook
- Read our introductory tutorial over at Storybook tutorials.
- Learn how to transform your component libraries into design systems in our Design Systems for Developers tutorial.
- See our official documentation at Storybook.