Node.js at v20.4.0+ and NPM v9.0.0+ are required.
To install modules run:
npm install # or npm i
npm run lint
- to run linter for codebasenpm run prettier:check
- to run prettier check (used for CI)npm run prettier
- to run prettier with fixing errors (used for local)npm run test
- for running unit testsnpm run test:watch
- for running unit tests in watch modenpm run test:coverage
- for check unit tests coveragenpm run test:ci
- for running unit tests in ci modenpm run bundle
- package the TypeScript for distributionnpm run all
- runs prettier, lint, tests, coverage and bundle. Recommended to run before creating PR and sending to review.npm run fake-server:start
- fake server needed for smoke tests in CI.
We use git tags for releases. After merging a PR with your changes to main branch, you should do next steps:
- Checkout to main branch locally.
- Run
git pull
to fetch latest changes. - Go to
script
folder (cd script
) and run./release
script. - Type in a new release tag, e.g.
v1.0.9
. - And then type
y
orn
if you want also to pointv1
version to the current commit.