Template for multi-packages repository.
It provides specific features for React, e.g. :
- Storybook with
@stroybook/react
and stories in__stories__/
folders. - Babel with
@babel/preset-react
. - ESLint with
eslint-plugin-react
and some rules in.eslintrc
file.
Run commit
script to create a git commit.
It uses git-cz
and respect Conventional Commit specification.
n.b. lint-staged
run linters (cf. .lintstagedrc
file) on pre-commit
hook (cf. precommit
script).
Run prettier
script to format all files.
It uses prettier
and rules specified in the .prettierrc
file.
Besides, use the Prettier editor integration.
e.g. For Visual Studio Code :
Search for
Prettier - Code formatter
.
Run lint
script to lint all files.
It uses eslint
and config from :
Run build
script to build packages.
It uses lerna
and rollup
to build simultaneously all packages in packages/
folder.
- Run
storybook
script - Browse
localhost:9001/