Skip to content

Commit 9b7032a

Browse files
fix(core): add script to init husky (#445)
GH-0
1 parent caaa1bd commit 9b7032a

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

DEVELOPING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,11 @@ This section must start with the upper case text `BREAKING CHANGE` followed by a
457457
colon (`:`) and a space (``). A description must be provided, describing what
458458
has changed and how to migrate from older versions.
459459

460+
## Husky setup for commit hooks
461+
462+
- run `npm i` at the root of the project
463+
- run `npx husky install` or `npm run prepare` at the root of the project
464+
460465
### Tools to help generate a commit message
461466

462467
This repository has [commitizen](https://github.com/commitizen/cz-cli) support

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"name": "@sourceloop/root",
33
"private": false,
4-
"scripts": {},
4+
"scripts": {
5+
"prepare": "husky install"
6+
},
57
"devDependencies": {
68
"@commitlint/cli": "^15.0.0",
79
"@commitlint/config-conventional": "^15.0.0",

0 commit comments

Comments
 (0)