Skip to content

Commit

Permalink
chore: Add pre-commit hooks
Browse files Browse the repository at this point in the history
 - commit-msg validate-commit-msg ensures commits adhere to semantic-release.
 - pre-commit npm t ensures tests pass before committing.
  • Loading branch information
keithamus committed Dec 14, 2015
1 parent c095403 commit 7497a7f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions package.json
Expand Up @@ -25,8 +25,16 @@
"semantic-release": "travis-after-all && semantic-release pre && npm publish && semantic-release post",
"test": "node test.js"
},
"config": {
"ghooks": {
"pre-commit": "npm t",
"commit-msg": "validate-commit-msg"
}
},
"devDependencies": {
"ghooks": "^1.0.1",
"semantic-release": "^4.3.5",
"travis-after-all": "^1.4.4"
"travis-after-all": "^1.4.4",
"validate-commit-msg": "^1.0.0"
}
}
}

0 comments on commit 7497a7f

Please sign in to comment.