mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: husky 5
This commit is contained in:
1
.husky/.gitignore
vendored
Normal file
1
.husky/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
_
|
||||||
4
.husky/pre-commit
Executable file
4
.husky/pre-commit
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
npx lint-staged
|
||||||
11
package.json
11
package.json
@@ -7,7 +7,7 @@
|
|||||||
"setup": "npm run clean && npm install",
|
"setup": "npm run clean && npm install",
|
||||||
"setup:yarn": "yarn run clean && yarn",
|
"setup:yarn": "yarn run clean && yarn",
|
||||||
"setup:pnpm": "pnpm run clean && pnpm install",
|
"setup:pnpm": "pnpm run clean && pnpm install",
|
||||||
"postinstall": "ts-patch install && nx run core:setup",
|
"postinstall": "ts-patch install && husky install && nx run core:setup",
|
||||||
"start": "nps",
|
"start": "nps",
|
||||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
|
||||||
},
|
},
|
||||||
@@ -44,9 +44,9 @@
|
|||||||
"eslint-config-prettier": "~6.11.0",
|
"eslint-config-prettier": "~6.11.0",
|
||||||
"eslint-plugin-prettier": "^3.3.1",
|
"eslint-plugin-prettier": "^3.3.1",
|
||||||
"gonzales": "^1.0.7",
|
"gonzales": "^1.0.7",
|
||||||
"husky": "^4.2.5",
|
"husky": "^5.1.3",
|
||||||
"jest": "~26.2.2",
|
"jest": "~26.2.2",
|
||||||
"lint-staged": "^10.2.11",
|
"lint-staged": "^10.5.0",
|
||||||
"mocha": "^8.0.1",
|
"mocha": "^8.0.1",
|
||||||
"mocha-typescript": "^1.1.17",
|
"mocha-typescript": "^1.1.17",
|
||||||
"module-alias": "^2.2.2",
|
"module-alias": "^2.2.2",
|
||||||
@@ -67,11 +67,6 @@
|
|||||||
"webpack": "~4.44.1",
|
"webpack": "~4.44.1",
|
||||||
"webpack-cli": "~3.3.12"
|
"webpack-cli": "~3.3.12"
|
||||||
},
|
},
|
||||||
"husky": {
|
|
||||||
"hooks": {
|
|
||||||
"pre-commit": "npx lint-staged"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"**/*": [
|
"**/*": [
|
||||||
"nx format:write --files"
|
"nx format:write --files"
|
||||||
|
|||||||
Reference in New Issue
Block a user