11.0.0 • Published 6 years ago
jebtest-2 v11.0.0
Components library
Demo / Example Package
yarn start
- http://localhost:9001/
Publishing
Versioning TBD Fixed/Locked mode. independent mode.
Scripts
A look at the scripts that are available:
- To bootstrap your packages and start your UI development environment run:
yarn start
- To easily install all the dependencies in your individual packages at once run:
yarn bootstrap
- Run all your packages tests and generate coverage report:
yarn test
- To export your storybook as a static app:
yarn export-static-storybook
- It will be placed in
.out/
To test locally after export:
cd .out
python -m SimpleHTTPServer
- Create a new release of the packages that have been updated. Prompts for a new version and updates all the packages on git and npm:
yarn publish
This project is powered by Lerna so all Lerna commands are also available. If you do wish to use these.
Creating A Package
- Create a new directory for your package:
A basic package structure will look like:
package-name/
├──src/
| ├──index.js * Entry point for you package
| ├──index.spec.js * Test file for entry point
| └──styles/ * Styled components directory
| └──styledComponent.js
│
├──index.story.js * Storybook story for entry point
├──.gitignore * .gitignore specific to this package
├──README.md * README specific to this package
└──package.json * Info for this independent package
Run
yarn start
which will bootstrap your package and run Storybook.Start building out your Component/Package and use the Story to view it as you develop.
Write Tests and Publish!