Skip to content

Commit

Permalink
Merge pull request #449 from Kitware/commitizen
Browse files Browse the repository at this point in the history
Add "npm run commit" script
  • Loading branch information
Roni Choudhury committed Oct 18, 2016
2 parents 57683d4 + 3641183 commit 1da25f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ of things. Installing it is relatively easy:
After installation succeeds, you can use `git cz` as a drop-in replacement for
`git commit`, with the exact same options and flags you are used to.

If you don't want to install Commitizen globally on your system this way, you
can use an NPM script to run it out of Candela's `node_modules` directory by
saying `npm run commit` instead. To pass arguments along to `git-cz`, supply
them after a double dash; e.g., `npm run commit -- -a` to commit all changes in
the working tree.

### Commit message validation and retrying failed commits

The Candela repository has built-in validation for commit messages. If you
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"codecov": "cat coverage/lcov/lcov.info | codecov",
"examples": "http-server build -p ${PORT-3000}",
"docs": "npm run build:docs && http-server build/docs -p ${PORT-3000}",
"commit": "git-cz",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"commitmsg": "validate-commit-msg"
},
Expand Down Expand Up @@ -62,6 +63,7 @@
"callsite": "^1.0.0",
"clean-webpack-plugin": "^0.1.7",
"codecov.io": "^0.1.6",
"commitizen": "^2.8.6",
"conventional-commit-types": "^2.1.0",
"copy-webpack-plugin": "^1.1.1",
"css-loader": "^0.23.1",
Expand Down

0 comments on commit 1da25f4

Please sign in to comment.