These steps will guide you through contributing to this project:
Lerna is used to manage multiple packages and you will need it during the installation process.
-
Fork the repo
-
Clone it
-
Install
lerna
-
Install dependencies
git clone https://github.com/YOUR-USERNAME/jest-decorated
npm i -g lerna
npm run bootstrap
To run tests in all packages:
npm test
To run tests for specific package, simply run it from within the package dir, for example:
cd packages/core
npm test
Coverage will be collected and displayed during tests execution. After tests execution, each package will have coverage
dir with detailed information.
To build all of the packages:
npm run build
To build specific package, simply run it from within the package dir, for example:
cd packages/core
npm run build
According to this doc:
lerna version
Simply
lerna publish
Command | Description |
---|---|
npm run clean |
Delete all of the node_modules , rpt2_cache and coverage |
npm run cleanBuild |
Clean, install and build |
npm run lint |
Run tslint in all packages |