Skip to content

Commit

Permalink
chore: add commitizen and pre commit check support
Browse files Browse the repository at this point in the history
  • Loading branch information
rajey committed May 8, 2019
1 parent 1cb227a commit 59985b6
Show file tree
Hide file tree
Showing 5 changed files with 242 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: '2'
exclude_paths:
exclude_patterns:
- 'docs'
- 'documentation'
- 'dist'
Expand Down
6 changes: 6 additions & 0 deletions .huskyrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"hooks": {
"pre-commit": "npm run test:travis",
"prepare-commit-msg": "exec < /dev/tty && git cz --hook"
}
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[![Build Status](https://travis-ci.org/hisptz/ngx-seed-app.svg?branch=master)](https://travis-ci.org/hisptz/ngx-seed-app)
[![Maintainability](https://api.codeclimate.com/v1/badges/dbe97dbdfbd55344c38f/maintainability)](https://codeclimate.com/github/hisptz/ngx-seed-app/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/dbe97dbdfbd55344c38f/test_coverage)](https://codeclimate.com/github/hisptz/ngx-seed-app/test_coverage)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)

# Angular DHIS2 based seed app

Expand Down
235 changes: 232 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@
"@types/jasminewd2": "^2.0.6",
"@types/node": "~8.9.4",
"codelyzer": "~4.3.0",
"commitizen": "^3.0.7",
"commitizen": "^3.1.1",
"cz-conventional-changelog": "^2.1.0",
"husky": "^2.2.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^4.0.1",
Expand Down

0 comments on commit 59985b6

Please sign in to comment.