From c75ce067aa7c47c2ef78e2598ef7e46d6bbc9e24 Mon Sep 17 00:00:00 2001 From: Chris Kay Date: Wed, 9 Dec 2020 14:35:46 +0000 Subject: 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 --- package.json | 2 ++ 1 file changed, 2 insertions(+) (limited to 'package.json') 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" } } -- cgit v1.2.1