🔧 Chore: simplify scripts

This commit is contained in:
Cell
2022-08-07 15:55:10 +08:00
parent 267a21675d
commit 0054c28934
+1 -2
View File
@@ -18,10 +18,9 @@
"scripts": {
"babel": "npx babel src/js/theme.js -o assets/js/theme.min.js -s",
"build": "npm run babel && hugo -v --source=docs --gc --minify",
"build:vercel": "npm run babel && hugo -v --source=docs --theme $PWD $BUILD_DRAFTS --gc --minify",
"build:lunr.segmentit": "browserify src/lib/lunr.segmentit.js -o assets/lib/lunr/lunr.segmentit.js -t babelify --presets @babel/preset-env --presets minify",
"server": "hugo server --source=docs -D --disableFastRender --navigateToChanged --ignoreCache",
"server:production": "hugo server --source=docs -D --disableFastRender --navigateToChanged --ignoreCache -e production",
"server:production": "npm run server -- -e production",
"start": "npm run babel && npm run server",
"start:production": "npm run babel && npm run server:production",
"algolia": "atomic-algolia",