@rentablo/components
v0.3.95
Published
The recommended workflow is to run:
Downloads
8
Keywords
Readme
Commands
The recommended workflow is to run:
npm start # or yarn start
This builds to /dist
and runs the project in watch mode so any edits you save inside src
causes a rebuild to /dist
.
Then run either Storybook or the example playground:
Storybook
Run inside another terminal:
yarn storybook
This loads the stories from ./stories
.
NOTE: Stories should reference the components as if using the library, similar to the example playground. This means importing from the root project directory. This has been aliased in the tsconfig and the storybook webpack config as a helper.
Example
Then run the example inside another:
cd example
npm i # or yarn to install dependencies
npm start # or yarn start
To do a one-off build, use npm run build
or yarn build
.
To run tests, use npm test
or yarn test
.
Jest
Jest tests are set up to run with npm test
or yarn test
.