chore(spec): 归档 blog-5n——八任务收敛(后台深度优化全家桶)
Spec: 2026-11-05_blog-5n-admin-deep-optimization Co-authored-by: GLM-5.3
This commit is contained in:
1 parent
a555a3e450
commit
5c0e6ed900
29 files changed
+1559
-512
No files matched your search
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
export PATH="$HOME/.local/node/bin:$PATH"
|
||||
grep -q '0\.259\.0' public/admin/sveltia-cms.js
|
||||
node --check public/admin/sveltia-cms.js
|
||||
grep -c "registerPreviewStyle" public/admin/sveltia-cms.js >/dev/null
|
||||
pnpm astro build >/dev/null 2>&1
|
||||
echo "verify_t1 OK"
|
||||
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
[ -x scripts/deploy/translate-step.sh ]
|
||||
grep -q "translate-step" infra/deploy/build.sh
|
||||
grep -q "build-status.json" infra/deploy/build.sh
|
||||
grep -q "trap 'write_status fail'" infra/deploy/build.sh
|
||||
bash scripts/deploy/translate-step.sh --dry-run
|
||||
echo "verify_t2 OK"
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
export PATH="$HOME/.local/node/bin:$PATH"
|
||||
python3 scripts/build-perf/config-check.py . | grep -q 全部通过
|
||||
grep -q "≤32 字" public/admin/config.yml
|
||||
grep -q "60–120 字" public/admin/config.yml
|
||||
grep -q "避免同义新造" public/admin/config.yml
|
||||
grep -q "写作模板》复制起手" public/admin/config.yml
|
||||
grep -q "英文版构建时自动机翻" public/admin/config.yml
|
||||
echo "verify_t3 OK"
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
node --check public/admin/deploy-status.js
|
||||
grep -q "deploy-status.js" public/admin/index.html
|
||||
grep -q "quick-dock" public/admin/index.html
|
||||
grep -q "manifest.webmanifest" public/admin/index.html
|
||||
grep -q "favicon.svg" public/admin/index.html
|
||||
[ -f docs/后台回滚指引.md ]
|
||||
grep -q "一句话版本" docs/后台回滚指引.md
|
||||
echo "verify_t4 OK"
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
export PATH="$HOME/.local/node/bin:$PATH"
|
||||
pnpm astro build >/dev/null 2>&1
|
||||
grep -q "tagline\|avatar" dist/index.html
|
||||
grep -q "identity\|socials" src/content.config.ts
|
||||
echo "verify_t5 OK"
|
||||
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
export PATH="$HOME/.local/node/bin:$PATH"
|
||||
pnpm astro build >/dev/null 2>&1
|
||||
python3 scripts/build-perf/gen-admin-stats.py dist
|
||||
[ -f dist/admin/stats.html ]
|
||||
python3 -c "import json;d=json.load(open('dist/admin/stats.json'));assert d['posts_visible']>0 and 'top_tags' in d"
|
||||
echo "verify_t6 OK"
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
node --check public/admin/preview-style.js
|
||||
grep -q "prefers-color-scheme: dark" public/admin/preview-style.js
|
||||
python3 -c "import json;m=json.load(open('public/admin/manifest.webmanifest'));assert m['start_url']=='/admin/' and len(m['icons'])==2"
|
||||
echo "verify_t7 OK"
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
export PATH="$HOME/.local/node/bin:$PATH"
|
||||
python3 scripts/build-perf/config-check.py . | grep -q 全部通过
|
||||
grep -q "上传后构建自动优化" public/admin/config.yml
|
||||
grep -q "媒体" docs/管理台.md
|
||||
echo "verify_t8 OK"
|
||||
Reference in new issue
Block a user