Add browser-only editor export and 2.5D runtime presentation

This commit is contained in:
emil28092005
2026-09-12 00:05:19 +03:00
parent a25ed40805
commit 1a0bf725fa
16 changed files with 883 additions and 53 deletions
+11
View File
@@ -27,6 +27,17 @@ await build({
define: { "process.env.NODE_ENV": '"production"' },
logLevel: "warning",
});
await mkdir("public/hosted-editor", { recursive: true });
await build({
entryPoints: ["editor/hosted.tsx"],
bundle: true,
format: "esm",
target: "es2022",
minify: true,
outfile: "public/hosted-editor/editor.js",
define: { "process.env.NODE_ENV": '"production"' },
logLevel: "warning",
});
await writeFile(
"public/studio/index.html",
'<!doctype html><html lang="ru"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover"><title>Forma Engine</title><link rel="icon" href="/favicon.svg"><link rel="stylesheet" href="/studio/editor.css"></head><body><div id="root"></div><script type="module" src="/studio/editor.js"></script></body></html>',