English | 中文
应用生成与工具链 CLI,负责 App DSL 校验与脚手架流水线产物。
- 主里程碑:Phase 6 (+ API Generator task in Phase 2)
- 主线看板:GitHub Project #5
- In-scope:承接 Meta-Driven SaaS OS 主线对应模块职责。
- 依赖关系:协调可被 kernel、bff、runtime 消费的生成产物。
- Non-goal:不承担长期运行时引擎职责。
- DSL 是唯一真相。
- 所有数据/实时链路必须经过 BFF。
- Runtime 不承载业务规则实现。
- Meta Kernel 是唯一结构来源。
- Phase 5(Designer)与 materials 保持在 ngx-lowcode 基础库。
- ngx-puzzle 继续作为独立基础库。
克隆后:
npm install
npm run build后续接入实现包后:
# 生成最小可校验 DSL 模板
npx meta-lc init --out ./app.dsl.json
# 校验 DSL(失败返回 exit code 1)
npx meta-lc validate --file ./app.dsl.json
# 输出结构化结果
npx meta-lc validate --file ./app.dsl.json --json
# 输出人类可读摘要
npx meta-lc explain --file ./app.dsl.json
# 生成 Pipeline 计划(默认仅写 plan.json)
npx meta-lc generate --file ./app.dsl.json --out demo
# 写出四类产物(DB/API/Perm/Page)
npx meta-lc generate --file ./app.dsl.json --out demo --write
# 生成租户/角色模板(默认预览)
npx meta-lc template --file ./app.dsl.json --out demo
# 写出租户/角色模板文件
npx meta-lc template --file ./app.dsl.json --out demo --write
# 执行严格 E2E gate(validate + generate + template + BFF 联调)
npx meta-lc e2e --file ./app.dsl.json --out demo --bff-url http://localhost:6000
# 输出机器可解析 E2E 结果
npx meta-lc e2e --file ./app.dsl.json --out demo --json- 统一文档仓库:lowcode-docs
- 架构基线:Meta-Driven Standard