feat(tools): build-game 构建流水线
版本校验 → 实体化 → 皮肤合成 → 构建 → build-info。任一校验不过 即中止且不触发构建。runBuild 为注入点, 除真构建外全流程可单测。 Cocos 可执行路径只从 COCOS_CREATOR 环境变量取, 缺失显式报错。 同时补入 check-skin.mjs 的 process.argv[1] 守卫,与仓库其余脚本一致。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
"check-cocos": "node scripts/check-cocos-version.mjs",
|
||||
"bump-cocos": "node scripts/bump-cocos.mjs",
|
||||
"check-skin": "node scripts/check-skin.mjs",
|
||||
"build-game": "node scripts/build-game.mjs",
|
||||
"test:framework": "node scripts/run-framework-tests.mjs",
|
||||
"typecheck:framework": "tsc -p tsconfig.framework.json --noEmit"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user