If you want to fix a bug or develop a new component, you must set up the following dependencies first.
- Run
yarn
to install dev dependencies. - Run
yarn storybook
to view all the components on Storybook.
Make sure you don't have react
and react-dom
listed in dev dependencies to do a clean build(rm -rf node_modules && yarn
).
Unfortunately, we can't bundle react and react-dom as dev dependencies because of the react hooks call validation, you can see more here.
yarn build
- Generates a new bundle with the changes you've made to the code.
yarn test
- Run all tests
yarn storybook
- Run the local storybook on port 6006.