From 756c0ac0cc798639025377cf105b573f9aafdf09 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 18 Jul 2026 23:28:52 +0800 Subject: [PATCH] fix(build): xls2ui CRUD for all pipeline modules (core/ops/dist/sdlc) --- build.sh | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/build.sh b/build.sh index 4233d11..2a2b8b7 100644 --- a/build.sh +++ b/build.sh @@ -67,12 +67,17 @@ for mod in pipeline_core pipeline_ops pipeline_dist pipeline-sdlc showcase tenan fi done -# 7. SDLC pipeline-sdlc: regenerate CRUD from json -if [ -d "pkgs/pipeline-sdlc/json" ]; then - cd "pkgs/pipeline-sdlc/json" - "$cdir/py3/bin/xls2ui" -m ../models -o ../wwwroot pipeline-sdlc *.json 2>&1 | grep -c 'handle' | xargs -I{} echo " xls2ui: {} tables handled" - cd "$cdir" -fi +# 7. Regenerate CRUD from json for all pipeline modules +for mod in pipeline_core pipeline_ops pipeline_dist pipeline-sdlc; do + json_dir="pkgs/$mod/json" + models_dir="pkgs/$mod/models" + wwwroot_dir="pkgs/$mod/wwwroot" + if [ -d "$json_dir" ] && ls "$json_dir"/*.json >/dev/null 2>&1; then + cd "$json_dir" + "$cdir/py3/bin/xls2ui" -m "../models" -o "../wwwroot" "$mod" *.json 2>&1 | grep -c 'handle' | xargs -I{} echo " xls2ui $mod: {} tables" + cd "$cdir" + fi +done # 8. Link module wwwroot directories (symlinks from pkgs/)