iter(g62): verify 校验 demo 实际调用每个组件

This commit is contained in:
HIsheR
2026-10-26 12:27:34 +08:00
parent 175f6dbf95
commit a6cd41c0c5
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -887,6 +887,9 @@ function cmdVerify() {
if (c.demo && demoSource && !anchors.has(c.demo)) {
issues.push(`${tag}: demo 锚点 ${c.demo} 在 apps/demo/main.ts 中不存在(缺对应 section)`);
}
if (demoSource && !demoSource.includes(`${c.id}(`) && !demoSource.includes(`${c.id}.`)) {
issues.push(`${tag}: apps/demo/main.ts 未实际调用 ${c.id}()(只有 section 锚点不算演示)`);
}
}
}