Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dillonzq/LoveIt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2022-05-07 07:19:00 +0300
committerDillon <dillonzq@outlook.com>2022-05-07 07:19:00 +0300
commit7f5bcda0065b94672424211498d198364146bfc0 (patch)
tree01eddfc6300cb4e7f9f1403e0c8673b3b8fe096a /package.json
parentb4169f3fdb9aeecbf60632a8f5957845cc49b4d8 (diff)
chore: update husky pre-commit
Diffstat (limited to 'package.json')
-rw-r--r--package.json10
1 files changed, 3 insertions, 7 deletions
diff --git a/package.json b/package.json
index a22ed190..66eca87e 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
"babelify": "^10.0.0",
"browserify": "^16.5.2",
"core-js": "^3.22.4",
- "husky": "^4.3.8",
+ "husky": "^7.0.0",
"segmentit": "^2.0.3"
},
"scripts": {
@@ -22,12 +22,8 @@
"start": "npm run babel && hugo server --source=exampleSite --themesDir ../.. -D --disableFastRender",
"start-production": "npm run babel && hugo server --source=exampleSite --themesDir ../.. -D --disableFastRender -e production",
"check": "htmlproofer exampleSite/public --check-html --allow-hash-href --empty-alt-ignore --disable-external",
- "copy": "rm -rf resources && cp -rf exampleSite/resources resources"
- },
- "husky": {
- "hooks": {
- "pre-commit": "npm run build && npm run copy && git add resources assets/js"
- }
+ "copy": "rm -rf resources && cp -rf exampleSite/resources resources",
+ "prepare": "husky install"
},
"repository": {
"type": "git",