This repo aims to be used as a Design System
Publish is WIP
Publish is WIP
If you don't have yarn installed
npm install -g yarn
Install all dependencies
yarn
Executes the storybook in http://localhost:6006/
yarn storybook
Update snapshots
yarn test -u
Execute tests
yarn test
Execute test by name
yarn test -- 'Button'
Every component has the same structure
-
Button/__test__
A folder to keep all tests of the component -
Button/__test__/__snapshots__
Where are generated all snapshots of this component -
Button/__test__/Button.test.tsx
Where we craft all the tests of this component -
Button/Button.tsx
Where we craft the component -
Button/Button.style.ts
Where we craft the styled components to use in Button.tsx -
Button/Button.stories.tsx
Where we craft all types used in Button.tsx
The component archicture is set up following the atomic design methodology.