summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorChris Kay <chris.kay@arm.com>2020-12-09 14:35:46 +0000
committerChris Kay <chris.kay@arm.com>2021-04-19 14:06:25 +0100
commitc75ce067aa7c47c2ef78e2598ef7e46d6bbc9e24 (patch)
tree19ecfc1b75fe8d0fe2be065d4bfaf1b9a2ae1cf2 /package.json
parent4b7eee81e3593b66e7340699ea0dafe568cc003a (diff)
downloadarm-trusted-firmware-c75ce067aa7c47c2ef78e2598ef7e46d6bbc9e24.tar.gz
build(hooks): add Commitizen hook
This change adds Commitizen, an interactive tool for writing commit messages, to the package.json file. This installs Commitizen within the `node_modules` directory automatically when developers invoke `npm install` from the root repository directory. Additionally, this change adds a prepare-commit-msg Git hook which invokes Commitizen prior to generation of the default commit message. It may be exited with the standard ^C signal without terminating the commit process for those who desperately want to avoid using it, but otherwise should encourage developers to conform to the new commit style without running into post-commit linting errors. Change-Id: I8a1e268ed40b61af38519d13d62b116fce76a494 Signed-off-by: Chris Kay <chris.kay@arm.com>
Diffstat (limited to 'package.json')
-rw-r--r--package.json2
1 files changed, 2 insertions, 0 deletions
diff --git a/package.json b/package.json
index a11a1ed2d..acd248a1b 100644
--- a/package.json
+++ b/package.json
@@ -4,6 +4,8 @@
"postinstall": "husky install"
},
"devDependencies": {
+ "commitizen": "^4.2.2",
+ "cz-conventional-changelog": "^3.3.0",
"husky": "^5.0.4"
}
}