Stufe 0: Grundgerüst mit Rechenkern, Datenbank, Oberfläche und Docker-Betrieb
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
15
scripts/build-web.mjs
Normal file
15
scripts/build-web.mjs
Normal file
@@ -0,0 +1,15 @@
|
||||
import { build } from "esbuild";
|
||||
import { cp, mkdir } from "node:fs/promises";
|
||||
|
||||
await mkdir("dist/web", { recursive: true });
|
||||
await build({
|
||||
entryPoints: ["src/web/app.ts"],
|
||||
bundle: true,
|
||||
format: "esm",
|
||||
target: "es2022",
|
||||
outfile: "dist/web/app.js",
|
||||
sourcemap: true,
|
||||
minify: process.env.NODE_ENV === "production",
|
||||
});
|
||||
await cp("src/web/index.html", "dist/web/index.html");
|
||||
await cp("src/web/styles.css", "dist/web/styles.css");
|
||||
Reference in New Issue
Block a user