🚀 Chore(ci/cd): improve the joint construction and deployment of Demo and Test content

- Demo: https://demo.fixit.lruihao.cn/
- Test: https://demo.fixit.lruihao.cn/test/
This commit is contained in:
Cell
2025-08-19 17:37:09 +08:00
parent cc2ef7bf70
commit 93acf8ea79
12 changed files with 744 additions and 59 deletions
+7 -6
View File
@@ -23,11 +23,11 @@
"scripts": {
"build": "hugo --source=demo --themesDir ../.. --theme $PWD --gc --minify --logLevel info",
"build:test": "hugo --source=test --themesDir ../.. --theme $PWD --gc --minify --logLevel info",
"server": "hugo server --source=demo --themesDir ../.. --theme $PWD -D --disableFastRender --navigateToChanged --ignoreCache -O",
"server:production": "npm run server -- -e production",
"server:docs": "hugo server --source=../fixit-docs -D --disableFastRender --navigateToChanged --ignoreCache -O",
"build:vercel": "npm run build && npm run build:test && ./move-public.sh",
"preview": "npm run build:vercel && serve public",
"dev": "hugo server --source=demo --themesDir ../.. --theme $PWD -D --disableFastRender --navigateToChanged --ignoreCache -O",
"test": "hugo server --source=test --themesDir ../.. --theme $PWD -D --disableFastRender --navigateToChanged --ignoreCache -O",
"test:production": "npm run test -- -e production",
"dev:docs": "hugo server --source=../fixit-docs -D --disableFastRender --navigateToChanged --ignoreCache -O",
"version": "fixit-releaser version --prod",
"postversion": "git push && git push --tags && npm run release",
"release": "fixit-releaser changelog",
@@ -35,9 +35,10 @@
},
"devDependencies": {
"@hugo-fixit/fixit-releaser": "^1.2.3",
"husky": "^9.1.7"
"husky": "^9.1.7",
"serve": "^14.2.4"
},
"engines": {
"node": ">=18"
"node": ">=20"
}
}