🔧 Chore: remove husky

This commit is contained in:
Cell
2022-03-08 19:34:03 +08:00
parent 8b62b5c0b3
commit 23e53ca26e
2 changed files with 836 additions and 5552 deletions
+834 -5542
View File
File diff suppressed because it is too large Load Diff
+2 -10
View File
@@ -14,7 +14,6 @@
"babelify": "^10.0.0",
"browserify": "^17.0.0",
"core-js": "^3.21.1",
"husky": "^7.0.4",
"minimist": "^1.2.5",
"segmentit": "^2.0.3"
},
@@ -23,22 +22,15 @@
"babel": "npx babel src/js/theme.js --out-file assets/js/theme.min.js --source-maps --no-comments && npx babel src/js/service-worker.js --out-file static/service-worker.min.js --source-maps --no-comments",
"build": "npm run babel && hugo -v --source=exampleSite --themesDir ../.. --gc",
"build-lunr-segmentit": "browserify src/lib/lunr.segmentit.js -o assets/lib/lunr/lunr.segmentit.js -t babelify --presets @babel/preset-env --presets minify",
"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",
"server": "hugo server --source=exampleSite --themesDir ../.. -D --disableFastRender",
"server:production": "hugo server --source=exampleSite --themesDir ../.. -D --disableFastRender -e production",
"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",
"algolia": "atomic-algolia"
},
"resolutions": {
"minimist": "^1.2.5"
},
"husky": {
"hooks": {
"pre-commit": "npm run build && npm run copy && git add resources assets/js"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/Lruihao/FixIt.git"