Skip to content

Instantly share code, notes, and snippets.

@eperedo
Last active July 20, 2016 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eperedo/2b5f9b765d36f34464b7 to your computer and use it in GitHub Desktop.
Save eperedo/2b5f9b765d36f34464b7 to your computer and use it in GitHub Desktop.
Commitizen configuration including ghooks for validation messages, commits and push
{
"name": "[package-name]",
"description": "",
"main": "src/index.js",
"version": "0.0.0-semantic-release",
"scripts": {
"commit": "git-cz",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -w -r 0",
"coverage": "istanbul cover node_modules/tape/bin/tape -- tape src/**/*.test.js",
"dev": "nodemon src/server.js --ignore '*.test.js'",
"lint": "eslint src/**/*.js",
"pretest": "npm run lint",
"test": "tape src/**/*.test.js | tap-spec",
"watch": "nodemon -q -x npm test"
},
"keywords": [],
"author": "Eduardo Peredo <eduardo.peredo@abakio.com>",
"license": "MIT",
"devDependencies": {
"commitizen": "2.8.2",
"conventional-changelog": "1.1.0",
"cz-conventional-changelog": "1.1.6",
"eslint": "3.1.1",
"ghooks": "1.3.2",
"istanbul": "0.4.4",
"nodemon": "1.9.2",
"tap-spec": "4.1.1",
"tape": "4.6.0",
"validate-commit-message": "3.0.1"
},
"engines": {
"node": ">= 5.4.0"
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
},
"ghooks": {
"pre-commit": "npm test",
"pre-push": "npm test",
"commit-msg": "validate-commit-msg"
}
},
"repository": {
"type": "git",
"url": "https://bitbucket.org/abakioteam/quinta"
},
"release": {
"debug": true,
"generateNotes": "npm run changelog"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment