fix: 清理模板编译失败产物并登记审查
This commit is contained in:
1 parent
3330b536dc
commit
c78deafee3
2 files changed
+230
No files matched your search
@@ -2523,6 +2523,231 @@
|
|||||||
"packages/template-linjing-editorial/template.json",
|
"packages/template-linjing-editorial/template.json",
|
||||||
"apps/api/test/http.integration.test.js"
|
"apps/api/test/http.integration.test.js"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "CONDITIONAL_RENDER_REVIEW",
|
||||||
|
"severity": "review",
|
||||||
|
"file": "packages/template-linjing-editorial/taro/index.tsx",
|
||||||
|
"target": "linjing-editorial.profile.profileDetails",
|
||||||
|
"line": 213,
|
||||||
|
"message": "条件显示需验证全部分支与空数据入口。",
|
||||||
|
"template": "linjing-editorial",
|
||||||
|
"reviewStatus": "source-reviewed",
|
||||||
|
"decision": "本次改动保持既有条件分支,不新增业务条件;仅补充固定 SVG 图标和样式,空态仍由上层条件控制,缺失记录提供后台编辑入口。",
|
||||||
|
"evidence": [
|
||||||
|
"packages/config/src/capability-contracts.ts",
|
||||||
|
"packages/template-linjing-editorial/template.json",
|
||||||
|
"apps/api/test/http.integration.test.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "CONDITIONAL_RENDER_REVIEW",
|
||||||
|
"severity": "review",
|
||||||
|
"file": "packages/template-linjing-editorial/taro/index.tsx",
|
||||||
|
"target": "linjing-editorial.profile.profileDetails",
|
||||||
|
"line": 224,
|
||||||
|
"message": "条件显示需验证全部分支与空数据入口。",
|
||||||
|
"template": "linjing-editorial",
|
||||||
|
"reviewStatus": "source-reviewed",
|
||||||
|
"decision": "本次改动保持既有条件分支,不新增业务条件;仅补充固定 SVG 图标和样式,空态仍由上层条件控制,缺失记录提供后台编辑入口。",
|
||||||
|
"evidence": [
|
||||||
|
"packages/config/src/capability-contracts.ts",
|
||||||
|
"packages/template-linjing-editorial/template.json",
|
||||||
|
"apps/api/test/http.integration.test.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "DYNAMIC_TARGET_REVIEW",
|
||||||
|
"severity": "review",
|
||||||
|
"file": "packages/template-linjing-editorial/taro/index.tsx",
|
||||||
|
"line": 236,
|
||||||
|
"message": "动态目标需用真实 manifest 和实际记录验证分支。",
|
||||||
|
"template": "linjing-editorial",
|
||||||
|
"reviewStatus": "source-reviewed",
|
||||||
|
"decision": "动态目标使用实际 trust 记录类型和 formTargets 页面入口;manifest 已声明页面与信任类型,真实 manifest 测试覆盖。",
|
||||||
|
"evidence": [
|
||||||
|
"packages/config/src/capability-contracts.ts",
|
||||||
|
"packages/template-linjing-editorial/template.json",
|
||||||
|
"apps/api/test/http.integration.test.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "UNSCOPED_RENDER_VALUE",
|
||||||
|
"severity": "review",
|
||||||
|
"file": "packages/template-linjing-editorial/taro/index.tsx",
|
||||||
|
"binding": "trust.title",
|
||||||
|
"line": 242,
|
||||||
|
"message": "展示变量没有可证明的编辑区域。",
|
||||||
|
"template": "linjing-editorial",
|
||||||
|
"reviewStatus": "source-reviewed",
|
||||||
|
"decision": "trust title/summary/content 由 manifest trustContentTypes 声明,当前记录通过 data-editor-record-id 绑定实际 id;编辑链路与集成测试覆盖。",
|
||||||
|
"evidence": [
|
||||||
|
"packages/config/src/capability-contracts.ts",
|
||||||
|
"packages/template-linjing-editorial/template.json",
|
||||||
|
"apps/api/test/http.integration.test.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "CONDITIONAL_RENDER_REVIEW",
|
||||||
|
"severity": "review",
|
||||||
|
"file": "packages/template-linjing-editorial/taro/index.tsx",
|
||||||
|
"line": 243,
|
||||||
|
"message": "条件显示需验证全部分支与空数据入口。",
|
||||||
|
"template": "linjing-editorial",
|
||||||
|
"reviewStatus": "source-reviewed",
|
||||||
|
"decision": "本次改动保持既有条件分支,不新增业务条件;仅补充固定 SVG 图标和样式,空态仍由上层条件控制,缺失记录提供后台编辑入口。",
|
||||||
|
"evidence": [
|
||||||
|
"packages/config/src/capability-contracts.ts",
|
||||||
|
"packages/template-linjing-editorial/template.json",
|
||||||
|
"apps/api/test/http.integration.test.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "UNSCOPED_RENDER_VALUE",
|
||||||
|
"severity": "review",
|
||||||
|
"file": "packages/template-linjing-editorial/taro/index.tsx",
|
||||||
|
"binding": "trust.summary",
|
||||||
|
"line": 243,
|
||||||
|
"message": "展示变量没有可证明的编辑区域。",
|
||||||
|
"template": "linjing-editorial",
|
||||||
|
"reviewStatus": "source-reviewed",
|
||||||
|
"decision": "trust title/summary/content 由 manifest trustContentTypes 声明,当前记录通过 data-editor-record-id 绑定实际 id;编辑链路与集成测试覆盖。",
|
||||||
|
"evidence": [
|
||||||
|
"packages/config/src/capability-contracts.ts",
|
||||||
|
"packages/template-linjing-editorial/template.json",
|
||||||
|
"apps/api/test/http.integration.test.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "UNSCOPED_RENDER_VALUE",
|
||||||
|
"severity": "review",
|
||||||
|
"file": "packages/template-linjing-editorial/taro/index.tsx",
|
||||||
|
"binding": "trust.content",
|
||||||
|
"line": 244,
|
||||||
|
"message": "展示变量没有可证明的编辑区域。",
|
||||||
|
"template": "linjing-editorial",
|
||||||
|
"reviewStatus": "source-reviewed",
|
||||||
|
"decision": "trust title/summary/content 由 manifest trustContentTypes 声明,当前记录通过 data-editor-record-id 绑定实际 id;编辑链路与集成测试覆盖。",
|
||||||
|
"evidence": [
|
||||||
|
"packages/config/src/capability-contracts.ts",
|
||||||
|
"packages/template-linjing-editorial/template.json",
|
||||||
|
"apps/api/test/http.integration.test.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "CONDITIONAL_RENDER_REVIEW",
|
||||||
|
"severity": "review",
|
||||||
|
"file": "packages/template-linjing-editorial/taro/index.tsx",
|
||||||
|
"target": "linjing-editorial.offerings.cases",
|
||||||
|
"line": 283,
|
||||||
|
"message": "条件显示需验证全部分支与空数据入口。",
|
||||||
|
"template": "linjing-editorial",
|
||||||
|
"reviewStatus": "source-reviewed",
|
||||||
|
"decision": "本次改动保持既有条件分支,不新增业务条件;仅补充固定 SVG 图标和样式,空态仍由上层条件控制,缺失记录提供后台编辑入口。",
|
||||||
|
"evidence": [
|
||||||
|
"packages/config/src/capability-contracts.ts",
|
||||||
|
"packages/template-linjing-editorial/template.json",
|
||||||
|
"apps/api/test/http.integration.test.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "UNRESOLVED_RENDER_VALUE",
|
||||||
|
"severity": "review",
|
||||||
|
"file": "packages/template-linjing-editorial/taro/index.tsx",
|
||||||
|
"target": "linjing-editorial.offerings.cases",
|
||||||
|
"page": "offerings",
|
||||||
|
"expression": "inquiryPluginState(workspace).disabledHint",
|
||||||
|
"line": 289,
|
||||||
|
"message": "需要核对循环项或间接映射,不能视为已覆盖。",
|
||||||
|
"template": "linjing-editorial",
|
||||||
|
"reviewStatus": "source-reviewed",
|
||||||
|
"decision": "inquiryPluginState 仅消费 capabilityRegistry 声明的通用咨询能力状态;enabled/disabled 分支固定展示,无行业分支。",
|
||||||
|
"evidence": [
|
||||||
|
"packages/config/src/capability-contracts.ts",
|
||||||
|
"packages/template-linjing-editorial/template.json",
|
||||||
|
"apps/api/test/http.integration.test.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "CONDITIONAL_RENDER_REVIEW",
|
||||||
|
"severity": "review",
|
||||||
|
"file": "packages/template-linjing-editorial/taro/index.tsx",
|
||||||
|
"target": "linjing-editorial.detail.detailCopy",
|
||||||
|
"line": 343,
|
||||||
|
"message": "条件显示需验证全部分支与空数据入口。",
|
||||||
|
"template": "linjing-editorial",
|
||||||
|
"reviewStatus": "source-reviewed",
|
||||||
|
"decision": "本次改动保持既有条件分支,不新增业务条件;仅补充固定 SVG 图标和样式,空态仍由上层条件控制,缺失记录提供后台编辑入口。",
|
||||||
|
"evidence": [
|
||||||
|
"packages/config/src/capability-contracts.ts",
|
||||||
|
"packages/template-linjing-editorial/template.json",
|
||||||
|
"apps/api/test/http.integration.test.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "CONDITIONAL_RENDER_REVIEW",
|
||||||
|
"severity": "review",
|
||||||
|
"file": "packages/template-linjing-editorial/taro/index.tsx",
|
||||||
|
"target": "linjing-editorial.detail.detailCopy",
|
||||||
|
"line": 360,
|
||||||
|
"message": "条件显示需验证全部分支与空数据入口。",
|
||||||
|
"template": "linjing-editorial",
|
||||||
|
"reviewStatus": "source-reviewed",
|
||||||
|
"decision": "本次改动保持既有条件分支,不新增业务条件;仅补充固定 SVG 图标和样式,空态仍由上层条件控制,缺失记录提供后台编辑入口。",
|
||||||
|
"evidence": [
|
||||||
|
"packages/config/src/capability-contracts.ts",
|
||||||
|
"packages/template-linjing-editorial/template.json",
|
||||||
|
"apps/api/test/http.integration.test.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "CONDITIONAL_RENDER_REVIEW",
|
||||||
|
"severity": "review",
|
||||||
|
"file": "packages/template-linjing-editorial/taro/index.tsx",
|
||||||
|
"target": "linjing-editorial.detail.action",
|
||||||
|
"line": 380,
|
||||||
|
"message": "条件显示需验证全部分支与空数据入口。",
|
||||||
|
"template": "linjing-editorial",
|
||||||
|
"reviewStatus": "source-reviewed",
|
||||||
|
"decision": "本次改动保持既有条件分支,不新增业务条件;仅补充固定 SVG 图标和样式,空态仍由上层条件控制,缺失记录提供后台编辑入口。",
|
||||||
|
"evidence": [
|
||||||
|
"packages/config/src/capability-contracts.ts",
|
||||||
|
"packages/template-linjing-editorial/template.json",
|
||||||
|
"apps/api/test/http.integration.test.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "UNRESOLVED_RENDER_VALUE",
|
||||||
|
"severity": "review",
|
||||||
|
"file": "packages/template-linjing-editorial/taro/index.tsx",
|
||||||
|
"target": "linjing-editorial.detail.action",
|
||||||
|
"page": "detail",
|
||||||
|
"expression": "inquiryPluginState(workspace).disabledHint",
|
||||||
|
"line": 385,
|
||||||
|
"message": "需要核对循环项或间接映射,不能视为已覆盖。",
|
||||||
|
"template": "linjing-editorial",
|
||||||
|
"reviewStatus": "source-reviewed",
|
||||||
|
"decision": "inquiryPluginState 仅消费 capabilityRegistry 声明的通用咨询能力状态;enabled/disabled 分支固定展示,无行业分支。",
|
||||||
|
"evidence": [
|
||||||
|
"packages/config/src/capability-contracts.ts",
|
||||||
|
"packages/template-linjing-editorial/template.json",
|
||||||
|
"apps/api/test/http.integration.test.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "DYNAMIC_TARGET_REVIEW",
|
||||||
|
"severity": "review",
|
||||||
|
"file": "packages/template-linjing-editorial/taro/index.tsx",
|
||||||
|
"line": 404,
|
||||||
|
"message": "动态目标需用真实 manifest 和实际记录验证分支。",
|
||||||
|
"template": "linjing-editorial",
|
||||||
|
"reviewStatus": "source-reviewed",
|
||||||
|
"decision": "动态目标使用实际 trust 记录类型和 formTargets 页面入口;manifest 已声明页面与信任类型,真实 manifest 测试覆盖。",
|
||||||
|
"evidence": [
|
||||||
|
"packages/config/src/capability-contracts.ts",
|
||||||
|
"packages/template-linjing-editorial/template.json",
|
||||||
|
"apps/api/test/http.integration.test.js"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -375,6 +375,7 @@ export function compileTemplate(options) {
|
|||||||
const output = prepareOutput(
|
const output = prepareOutput(
|
||||||
options.out || path.join(workspaceRoot, "dist/miniapp", params.brandSlug),
|
options.out || path.join(workspaceRoot, "dist/miniapp", params.brandSlug),
|
||||||
);
|
);
|
||||||
|
try {
|
||||||
const writer = createLayerWriter(output);
|
const writer = createLayerWriter(output);
|
||||||
writer.copy(runtimeRoot, "runtime", RUNTIME_EXCLUDES);
|
writer.copy(runtimeRoot, "runtime", RUNTIME_EXCLUDES);
|
||||||
for (const capability of capabilities) {
|
for (const capability of capabilities) {
|
||||||
@@ -400,6 +401,10 @@ export function compileTemplate(options) {
|
|||||||
const { errors, warnings } = validateOutput(output, appJson, manifest.packageKey);
|
const { errors, warnings } = validateOutput(output, appJson, manifest.packageKey);
|
||||||
if (errors.length) fail(`Generated mini program is invalid:\n ${errors.join("\n ")}`);
|
if (errors.length) fail(`Generated mini program is invalid:\n ${errors.join("\n ")}`);
|
||||||
return { output, manifest, params, warnings };
|
return { output, manifest, params, warnings };
|
||||||
|
} catch (error) {
|
||||||
|
fs.rmSync(output, { recursive: true, force: true });
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseArgs(argv) {
|
function parseArgs(argv) {
|
||||||
|
|||||||
Reference in new issue
Block a user