A starter project for react apps.
Things you need to change if your are copying this project:
- in the
package.jsonfile change the name. - remove
./packages/common - remove
./apps/example
Some opinionated choices:
- monorepo.
- Typescript. (js for tools/scripts is ok)
- No default exports in ts/js files.
- Sass for styling.
- Lint with eslint (.js,.ts,.tsx) and stylelint (.scss).
- React
- Only function components with hooks.
- Re-usable components are node packages (managed with lerna).
- Work on components within storybook.
- Auto format code with eslint.
- 4 spaces indentation.
- Re-usable code should be created with plop.
- code quality with sonarcloud.
- Lint with:
npm run lint - Create new components with:
npx plop - Test with
npm test - create new apps with:
cd srcandnpx create-react-app example --typescript.
- Travis, see: ./travis.yaml
- Server side rendering (SSR).``