CONTRIBUTING
December 31, 2016 ยท View on GitHub
- Fork the repo and clone locally
- In locally cloned repo:
npm install && npm run setup- This will the build fro the library and all the demo apps
- Prove existing code:
- Run the unit tests:
npm test - Run the end-to-end tests (see section below)
- Run the unit tests:
- Make changes in
srcfolder- Tip: use
npm run test:wto verify your changes on save
- Tip: use
- Add additional unit tests in
testfolder. These should cover your changes - Optionally add end-to-end tests in
e2efolder - Prove changes:
- Run the unit tests:
npm test - Run the end-to-end tests (see section below)
- Run the unit tests:
- Commit changes:
npm run cm- why use npm and not git to commit? See "Conventional commit message" section below
- Push your changes to your fork and submit a pull request
Running end-to-end tests
- In one terminal window:
npm run e2e-server - In another terminal window:
npm run e2e- Tip: use
npm run e2e-onlyif you already have built source code (ie you'venpm run setupornpm run build:all)
- Tip: use
Conventional commit message
This project uses the structure of the commit message to:
- Generate release notes like you see in this release
- Generate the next version number for the npm package using the rules of semver
- Trigger the publish a release of this library to npm using semantic-release
These conventions are detailed here: angular commit message conventions
Commitizen command line tool
To help you to follow these conventions this project uses Commitizen.
Commitizen provides a command line tool that will help you create a commit message that matches these conventions.
To lauch this tool we use npm run cm.
Releasing
See the releasing guidelines.