Bedient die gebaute App wie ein Mensch: Start, neues Projekt, Musterhaus, Wand per Klicks/Befehlszeile, Undo/Redo, Eigenschaft ändern, Geschoss, 3D, Speichern, Export IFC/DXF, DXF-Import. Konsolenfehler scheitern (Erlaubt-Liste für headless-wgpu). Projekt öffnen im Browser ist kaputt (readAsArrayBuffer + String) und als test.fail markiert. Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
16 lines
641 B
TypeScript
16 lines
641 B
TypeScript
// Erzeugt die .obp-Fixture (Beispielprojekt) mit der CLI — `*.obp` ist gitignoriert, also nie im Repo.
|
|
import { execFileSync } from "node:child_process";
|
|
import { existsSync, mkdirSync } from "node:fs";
|
|
import { dirname } from "node:path";
|
|
import { BEISPIEL_OBP } from "./paths";
|
|
|
|
export default function globalSetup(): void {
|
|
if (!existsSync("dist-cli/dossier-cli.mjs")) {
|
|
execFileSync("npm", ["run", "build:cli"], { stdio: "inherit" });
|
|
}
|
|
mkdirSync(dirname(BEISPIEL_OBP), { recursive: true });
|
|
execFileSync("node", ["dist-cli/dossier-cli.mjs", ":beispiel", "migrate", "--out", BEISPIEL_OBP], {
|
|
stdio: "inherit",
|
|
});
|
|
}
|