voxi-component-library
v1.0.0
Published
1. The single source of truth for style tokens (via [Style Dictionary](https://github.com/amzn/style-dictionary)) 2. A living styleguide (via [Styleguidist](https://github.com/styleguidist/react-styleguidist)) 3. A distributable component library (exporta
Downloads
2
Readme
What is This?
- The single source of truth for style tokens (via Style Dictionary)
- A living styleguide (via Styleguidist)
- A distributable component library (exportable as an NPM package)
Order of Operations
Styleguidist
Development
- Run
yarn styledictionary:build
to build the style tokens (target folder:./build/styledictionary/tokens/
). - Run
yarn styleguidist:dev
to build Styleguidist and start a server athttp://localhost:6060/
.
Production
- Run
yarn styledictionary:build
to build the style tokens (target folder:./build/styledictionary/tokens/
). - Run
yarn styleguidist:build
to build Styleguidist (target folder:./build/styleguidist/
).
Distributable Component Library
- Run
yarn dist
to build the distributable component library (target folder:./dist/
).
Fake Publish
Copies contents of dist/
to ../voxi-holding-pages/node_modules/voxi-component-library
to fake a publish (and subsequent install) to npm.
To do this run gulp publish
.