Files
pk-lab-xhs/scripts/check.py
T
codex-bot 5051466692
Verify mini program and deploy preview / verify-deploy (push) Successful in 3m9s
feat: redesign typed bracket poster editor
2026-09-20 16:37:35 +08:00

31 lines
905 B
Python

import json
from pathlib import Path
required = [
"app.js",
"app.json",
"pages/index/index.xhsml",
"pages/discover/discover.xhsml",
"pages/test/test.js",
"pages/result/result.js",
"assets/test-covers/rice.jpg",
"vendor/poster-editor.cjs",
"web/package.json",
"web/tsconfig.json",
"web/next.config.mjs",
"web/app/page.tsx",
"web/app/api/[...path]/route.ts",
"web/components/TestArena.tsx",
"web/components/PosterEditor.tsx",
]
missing = [name for name in required if not Path(name).is_file()]
if missing:
raise SystemExit("Missing required files: " + ", ".join(missing))
json.loads(Path("app.json").read_text())
next_config = Path("web/next.config.mjs").read_text()
if "output: 'standalone'" not in next_config:
raise SystemExit("Next.js standalone output is required")
print(f"Static checks passed ({len(required)} required files).")