- install nodejs 12+ version and corresponded npm
- in root folder run
npm ci
- install docker and setup it to make possible run without sudo (to able run pre-push hook)
- copy paste the script for
ubuntu/debian/pop os
systems
- copy paste the script for
- [optionally] to generate docs images
npm i -g @mermaid-js/mermaid-cli
sudo apt install graphviz
npm run start:dev
npm run jest:watch # comfortable for development
we use plop tool to generate new files with consistency.
See details in
plopfile.js
andtemplates/
folder
npm run g:slice someListPage src/app/modules/some/pages/some-list-page/state
# tree src/modules/some/
src/modules/some/
└── pages
└── some-list-page
└── state
├── some-list-page.actions.ts
├── some-list-page.epics.ts
├── some-list-page.reducer.ts
└── some-list-page.selectors.ts
# positional arguments:
# - name in dash-case/PascalCase/camelCase
# - destination folder (without component folder)
npm run g:react-fc fancy-button src/common/ui/
# tree src/common/ui/fancy-button
src/common/ui/fancy-button
├── fancy-button.scss
└── fancy-button.tsx
NOTE: the generation task automatically adds component-name folder to destination path