Files
hashbro 6447081ed9 init
2026-08-08 04:33:05 +08:00

1.2 KiB
Raw Permalink Blame History

frontend — 投递模板与构建工具

只读模板、tools/ patch 脚本、链路文档。项目根是上一级 ../(coruna-lab-web)。 生产构建由 ../build_api/ 调用;产物发布到 artifact root 的 channel/<id>/。

frontend/
├── source/          # 模板(勿直接 --apply)
├── tools/           # new_project / patch_*
├── doc/             # STAGE_JS / NATIVE_PACKS / SYNC …
├── tests/           # path patch 等
└── out/             # 可选缓存

快速构建

在 coruna-lab-web 根执行:

cd ..   # → coruna-lab-web/
pip3 install -r requirements.txt
python3 frontend/tools/new_project.py \
  --channel-id 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' \
  --deployment-domains 'www.dep.example' \
  --reporting-domains 'www.rep.example'

默认产物:artifacts/channel/<id>/{web,sync,out}/。
细节见 tools/README.md、../docs/BUILD_API.md。

注意

  • 不要对 source/ 使用 --apply
  • 首个 daily 路径与 daily 内模块 URL 均为 /channel/<id>/sync/...
  • Laravel Admin 在兄弟项目 coruna-lab,通过 HTTP 调用本仓库 build API