- 添加 iconv-lite + @xmldom/xmldom 依赖 (YouleNexus + 顶层) - 创建 framework-tests/legacy-layer-migration/ 目录结构 - 复制 Game_Surface_3 gameabc_Image.json / Layer00002.xml / Login_Layer.prefab 作 fixtures - spirit-semantics.json 骨架 (Task 5 完整化) - _smoke-iconv.mjs 验证解码可读中文 Spirit 名 注意: 顶层 package.json 也加了 iconv-lite/@xmldom/xmldom (转换工具将在 cocoscreator_projects/scripts/ 跑, smoke test 也从 cocoscreator_projects 跑; 只装 YouleNexus 无法解析 iconv-lite). 另: 实际 Layer00002.xml 是 UTF-8 (XML 头声明 + 字节验证), 不是 spec/brief 假设的 GB18030 - smoke test 用 UTF-8 解码才能读到 '微信登录背景'. 转换工具后续 Task 应支持自动检测 (XML 声明优先, fallback GB18030).
32 lines
960 B
JSON
32 lines
960 B
JSON
{
|
|
"name": "youle-monorepo-tools",
|
|
"private": true,
|
|
"type": "module",
|
|
"version": "0.1.0",
|
|
"scripts": {
|
|
"test": "node --test scripts/test/",
|
|
"setup-links": "node scripts/setup-links.mjs",
|
|
"new-game": "node scripts/new-game.mjs",
|
|
"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",
|
|
"convert-ui": "node scripts/convert-ui.mjs",
|
|
"verify-frames": "node scripts/verify-frames.mjs",
|
|
"test:framework": "node scripts/run-framework-tests.mjs",
|
|
"typecheck:framework": "tsc -p tsconfig.framework.json --noEmit"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^26.0.1",
|
|
"@types/ws": "^8.18.1",
|
|
"pngjs": "^7.0.0",
|
|
"tsx": "^4.22.4",
|
|
"typescript": "^6.0.3",
|
|
"ws": "^8.21.0"
|
|
},
|
|
"dependencies": {
|
|
"@xmldom/xmldom": "^0.9.12",
|
|
"iconv-lite": "^0.7.3"
|
|
}
|
|
}
|