Skip to content

Commit

Permalink
chore(git-hooks): added git hooks for pre-commit & commit-msg
Browse files Browse the repository at this point in the history
precommit runs `npm test` and commitmsg validates the commit message pattern
  • Loading branch information
travi committed Nov 12, 2016
1 parent f998606 commit 6c3a550
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"test": "grunt",
"preversion": "npm test",
"prepublish": "grunt build",
"postpublish": "greenkeeper-postpublish"
"postpublish": "greenkeeper-postpublish",
"precommit": "npm test",
"commitmsg": "validate-commit-msg"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -38,13 +40,15 @@
"babel-register": "6.18.0",
"chai": "3.5.0",
"coveralls": "2.11.15",
"cz-conventional-changelog": "1.2.0",
"greenkeeper-postpublish": "1.0.1",
"grunt": "1.0.1",
"grunt-cli": "1.2.0",
"grunt-contrib-clean": "1.0.0",
"grunt-eslint": "19.0.0",
"grunt-mocha-istanbul": "5.0.2",
"grunt-rollup": "1.0.1",
"husky": "0.11.9",
"istanbul": "1.0.0-alpha.2",
"load-grunt-config": "0.19.2",
"mocha": "3.1.2",
Expand All @@ -53,6 +57,12 @@
"referee-sinon": "1.0.3",
"rollup-plugin-babel": "2.6.1",
"sinon": "2.0.0-pre.4",
"time-grunt": "1.4.0"
"time-grunt": "1.4.0",
"validate-commit-msg": "2.8.2"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}

0 comments on commit 6c3a550

Please sign in to comment.