mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
🔧 Chore: remove husky and adjust npm script
This commit is contained in:
+5
-13
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "fixit-src",
|
||||
"version": "0.2.0",
|
||||
"version": "0.2.13",
|
||||
"description": "FixIt theme source file",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
@@ -14,7 +14,6 @@
|
||||
"babelify": "^10.0.0",
|
||||
"browserify": "^17.0.0",
|
||||
"core-js": "^3.20.3",
|
||||
"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",
|
||||
"server": "hugo server --source=exampleSite --themesDir ../.. -D --disableFastRender --navigateToChanged",
|
||||
"server:production": "hugo server --source=exampleSite --themesDir ../.. -D --disableFastRender --navigateToChanged -e production",
|
||||
"start": "npm run babel && npm run server",
|
||||
"start:production": "npm run babel && npm run server: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"
|
||||
|
||||
Reference in New Issue
Block a user