chore: flatten robomp

This commit is contained in:
can1357
2026-05-17 04:10:50 +02:00
parent a93ab48a6a
commit ec20364322
54 changed files with 31 additions and 33 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
// Mirrors the JSON shapes emitted by `src/robomp/server.py`. Kept narrow on
// Mirrors the JSON shapes emitted by `src/server.py`. Kept narrow on
// purpose: anything `unknown` here is something the backend explicitly does
// not promise to keep stable.
+2 -2
View File
@@ -8,12 +8,12 @@ import solid from "vite-plugin-solid";
const dirname = path.dirname(fileURLToPath(import.meta.url));
// Vite writes the bundle into `web/dist/`. After the rollup stage finishes we
// fan the output out into the Python package directory (`src/robomp/static/`)
// fan the output out into the Python package directory (`src/static/`)
// so FastAPI can mount it directly. Done in a Vite plugin so both `bun run
// web:build` and the Docker `web-builder` stage produce an installable layout
// without any extra shell glue.
const outDir = path.resolve(dirname, "dist");
const staticDir = path.resolve(dirname, "..", "src", "robomp", "static");
const staticDir = path.resolve(dirname, "..", "src", "static");
const PRESERVED_FILES: ReadonlySet<string> = new Set([".gitkeep"]);