Files
Claude 9ccb87f79f
Some checks failed
Prüfung / tests (push) Has been cancelled
Prüfung / container (push) Has been cancelled
0.32.0: Programmteile abschaltbar, Startbildschirm-Symbol (erste Serverversion)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
2026-10-23 06:34:19 +00:00

18 lines
583 B
JavaScript

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");
await cp("src/web/manifest.webmanifest", "dist/web/manifest.webmanifest");
await cp("src/web/bilder", "dist/web/bilder", { recursive: true });