Migrate to husky 8
This commit is contained in:
parent
58da7fc6ab
commit
3053497554
2 changed files with 6 additions and 6 deletions
4
.husky/pre-commit
Executable file
4
.husky/pre-commit
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
yarn pretty-quick --bail && yarn lint
|
||||
|
|
@ -12,12 +12,8 @@
|
|||
"lint": "eslint .",
|
||||
"prettier": "prettier --write '**/*'",
|
||||
"serve": "gulp serve watch",
|
||||
"standalone": "../brouter/gradlew -p ../brouter clean build && ../brouter/misc/scripts/generate_profile_variants.sh && gulp release:zip_standalone"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "pretty-quick --bail && yarn lint"
|
||||
}
|
||||
"standalone": "../brouter/gradlew -p ../brouter clean build && ../brouter/misc/scripts/generate_profile_variants.sh && gulp release:zip_standalone",
|
||||
"prepare": "husky install"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue