diff options
| author | Chris Kay <chris.kay@arm.com> | 2020-12-09 12:56:27 +0000 |
|---|---|---|
| committer | Chris Kay <chris.kay@arm.com> | 2021-04-19 14:06:25 +0100 |
| commit | ba39362f21113d2d75168234ca2264241257c6b6 (patch) | |
| tree | b112a8b6dbd8a91d3a90ac7b7f4f846b12f1e9a7 /package.json | |
| parent | 38b7c9c651c304bed9eea47905fc3072fb2af24e (diff) | |
| download | arm-trusted-firmware-ba39362f21113d2d75168234ca2264241257c6b6.tar.gz | |
build(hooks): add Husky configuration
Husky is a tool for managing Git hooks within the repository itself.
Traditionally, commit hooks need to be manually installed on a per-user
basis, but Husky allows us to install these hooks either automatically
when `npm install` is invoked within the repository, or manually with
`npx husky install`.
This will become useful for us in the next few patches when we begin
introducing tools for enforcing a commit message style.
Change-Id: I64cae147e9ea910347416cfe0bcc4652ec9b4830
Signed-off-by: Chris Kay <chris.kay@arm.com>
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/package.json b/package.json new file mode 100644 index 000000000..a11a1ed2d --- /dev/null +++ b/package.json @@ -0,0 +1,9 @@ +{ + "private": true, + "scripts": { + "postinstall": "husky install" + }, + "devDependencies": { + "husky": "^5.0.4" + } +} |
