feat: add hwlab cli and web skeleton

This commit is contained in:
HWLAB Code Queue
2026-05-21 14:44:09 +00:00
parent 77f70ff4ad
commit 6509a35804
15 changed files with 648 additions and 3 deletions
+12
View File
@@ -0,0 +1,12 @@
import fs from "node:fs";
import path from "node:path";
const rootDir = path.resolve(path.dirname(new URL(import.meta.url).pathname), "..");
const distDir = path.resolve(rootDir, "dist");
fs.mkdirSync(distDir, { recursive: true });
for (const file of ["index.html", "styles.css", "app.mjs", "runtime.mjs"]) {
fs.copyFileSync(path.resolve(rootDir, file), path.resolve(distDir, file));
}
console.log(`hwlab-cloud-web build ok: ${distDir}`);