From 536c4e9cab11595157b242a6856d8a4ed57c0021 Mon Sep 17 00:00:00 2001 From: v-zhangjc9 Date: Tue, 3 Jun 2025 20:22:29 +0800 Subject: [PATCH] =?UTF-8?q?feat(bin):=20=E5=A2=9E=E5=8A=A0forest=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/build-forest.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 bin/build-forest.js diff --git a/bin/build-forest.js b/bin/build-forest.js new file mode 100644 index 0000000..c671bae --- /dev/null +++ b/bin/build-forest.js @@ -0,0 +1,13 @@ +import {cd, path} from 'zx' +import {trim} from "licia"; +import {run_deploy_batch, run_deploy_root} from "./library.js"; + +// 切换目录 +cd(trim(path.dirname(import.meta.dirname))) +// 执行流程 +try { + await run_deploy_root() + await run_deploy_batch(['service-common', 'service-dependencies', 'service-configuration', 'service-forest']) +} catch (e) { + console.error(e) +} \ No newline at end of file