kb-lib-demo
v1.0.15
Published
This package uses:
Downloads
4
Readme
KB Lib Demo NPM Package
This package uses:
yarn
for running the scripts- Storybook to display the components and documentation
- Rollup and Babel to package up for NPM
- Chromatic and Jest for component testing
- Theme-UI to build the components and theme
...and is written in Typescript.
The build scripts in the package.json file -
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"test-storybook": "test-storybook",
"build": "rollup -c",
"prepublishOnly": "yarn build",
"chromatic": "chromatic --exit-zero-on-changes"
},
yarn storybook
will start Storybook for development
yarn build
bundles the package for NPM
yarn test-storybook
will run the test scripts locally along side yarn storybook
The other commands are more for the Github actions to run.