This project is bootstrapped using Create-react-app, see the original README.md file on the docs
folder.
This boilerplate uses Typescript, Jest, Storybook, eslint, React, Helmet,Styled-components and React-Snapshot on its core.
React-snapshot will create a "almost static" build, rendering all pages statically on the build folder.
On the project folder in addition to the usual start, build, test and eject scripts you have available
Starts Storybook. This boilerplate automatically renders all components that have a .stories.tsx
file.
Builds Storybook
Eslint fix the your source files.
Run this command with the path of the component you want to create, e.g.
npm run cp ./src/components/Header
This command creates the usual React component folder containing:
- src/components/Component
- Component.stories.tsx
- Component.test.tsx
- Component.tsx
- index.tsx