File tree Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ . " $( dirname " $0 " ) /_/husky.sh"
3
+
4
+ npx --no-install commitlint --edit $1
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ . " $( dirname " $0 " ) /_/husky.sh"
3
+
4
+ npx --no-install pretty-quick --staged
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ . " $( dirname " $0 " ) /_/husky.sh"
3
+
4
+ npm run lint && npm run test
Original file line number Diff line number Diff line change 20
20
"lint:fix" : " ng lint --fix hypertrace-ui" ,
21
21
"prettier:check" : " prettier --check '**'" ,
22
22
"test:ci" : " ng test hypertrace-ui --maxWorkers=2 --ci --coverage" ,
23
- "docs" : " compodoc -p tsconfig.json"
23
+ "docs" : " compodoc -p tsconfig.json" ,
24
+ "prepare" : " husky install"
24
25
},
25
26
"private" : true ,
26
27
"dependencies" : {
95
96
"codelyzer" : " ^6.0.2" ,
96
97
"commitizen" : " ^4.2.4" ,
97
98
"cz-conventional-changelog" : " ^3.3.0" ,
98
- "husky" : " ^7.0.1 " ,
99
+ "husky" : " ^7.0.0 " ,
99
100
"jest" : " ^26.6.3" ,
100
101
"jest-config" : " ^27.0.4" ,
101
102
"jest-html-reporter" : " ^3.4.1" ,
121
122
"extends" : [
122
123
" @commitlint/config-conventional"
123
124
]
124
- },
125
- "husky" : {
126
- "hooks" : {
127
- "pre-push" : " npm run lint && npm run test" ,
128
- "pre-commit" : " pretty-quick --staged" ,
129
- "commit-msg" : " commitlint -E HUSKY_GIT_PARAMS"
130
- }
131
125
}
132
126
}
You can’t perform that action at this time.
0 commit comments