feat: 建立组件化模板预览基线并规划可视化编辑

This commit is contained in:
que01 committed 2026-10-09 12:32:24 +08:00
1 parent c5af790554
commit 0b14b5a814
46 files changed
+1880 -427

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
const fs = require("node:fs");
const path = require("node:path");
const root = path.resolve(__dirname, "..");
const source = path.join(root, "apps/taro/dist/template-preview/h5");
const destination = path.join(root, "apps/admin/public/template-preview");
if (!fs.existsSync(path.join(source, "index.html"))) {
throw new Error("Unified template preview build is missing; run build:preview first.");
}
fs.rmSync(destination, { recursive: true, force: true });
fs.mkdirSync(path.dirname(destination), { recursive: true });
fs.cpSync(source, destination, { recursive: true });