Install dependencies:
yarn install
Run dev server (on port 4200):
yarn start
Run static code analyze:
yarn lint
Linter auto fix
yarn lint --fix
Run unit tests:
yarn test
Run unit tests in watch mode:
yarn test --watch
Run unit tests and update snapshots:
yarn test -u
Build bundle in development mode:
yarn build:dev
Build bundle in production mode:
yarn build:prod
Full build:
yarn build
Run mocked server (on port 4201):
yarn mocked-server
Open Cypress panel (required running mocked-server & build dist):
yarn cy:open
Run Cypress tests in headless mode (required running mocked-server & build dist):
yarn cy:run
Remove builded files:
yarn clean
Installed dependencies security audit:
yarn audit
To analyze bundle size (via webpack-bundle-analyzer):
yarn analyze
Snippets can be found here
Examples with SSR are placed as a separate branches in this repository.
Install one of this redux middleware
For date parsing [optional]:
Forms [optional]:
CSS-IN-JS:
-
styled-components [default]