npm install @getstation/theme
https://getstation.github.io/theme/storybook/index.html
https://getstation.github.io/theme/typedoc/index.html
- Add the SVG icon in
resources/iconswith param-case filename. Example:indian-pale-ale.svg. - Run
yarn run generate:icons - Commit SVG resource and generated files in
lib/components/Icon/svg - Use the new icon via:
<Icon symbolId={SvgSymbol.INDIAN_PALE_ALE} />
To work with storybook inside Bx you will need to link the module
git clone http://github.com/getstation/themecd themeyarnyarn linkcd /path/to/my/Bxyarn link @getstation/theme
You can see modifications to you components inside storybook, just start it yarn run storybook & go to localhost
Rebuild @getstation/theme via yarn run build inside the repo everytime you did change in theme
Create a RC version for your PR to be tested:
npm version --preid=rc --prereleasefor a new or increment RC, will result in 0.0.0-rc-0npm version --premajorfor a new major RC version, will result in 1.0.0-rc.0npm version --preminorfor a new minor RC version, will result in 0.1.0-rc.0npm version --prepatchfor a new patched version, will result in 0.0.1-rc.0git push --follow-tagsto push rc version version
- Build docs:
yarn build-docs - verify
CHANGELOG.mdentries - Increment version via: from 0.0.0
npm version --major=> 1.0.0npm version --minor=> 0.1.0npm version --patch=> 0.0.1- NB: if the version was a RC those command will automatically chaned it a release one with same version !👌
- Publish:
npm publish