iter(g62): verify 校验 demo 实际调用每个组件
This commit is contained in:
@@ -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 锚点不算演示)`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user