restore pre-commit hook
This commit is contained in:
parent
993b840a09
commit
3565644571
1 changed files with 3 additions and 2 deletions
|
@ -14,7 +14,8 @@
|
||||||
"format": "prettier --write ./site/**/*{.md,.js,.json,.vue}",
|
"format": "prettier --write ./site/**/*{.md,.js,.json,.vue}",
|
||||||
"translations:compare": "node ./scripts/compare_translations.js",
|
"translations:compare": "node ./scripts/compare_translations.js",
|
||||||
"codes:inject": "node ./scripts/inject_codes.js && yarn format",
|
"codes:inject": "node ./scripts/inject_codes.js && yarn format",
|
||||||
"codes:clean": "node ./scripts/clean_codes.js && yarn format"
|
"codes:clean": "node ./scripts/clean_codes.js && yarn format",
|
||||||
|
"precommit": "yarn codes:clean && git add ."
|
||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -29,5 +30,5 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"vuedraggable": "^2.23.2"
|
"vuedraggable": "^2.23.2"
|
||||||
},
|
},
|
||||||
"pre-commit": []
|
"pre-commit": ["precommit"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue