build: switch ui workflow to pnpm

This commit is contained in:
Jack O'Neill
2026-04-05 10:58:25 +02:00
parent f0d9c4dc09
commit a42274a770
6 changed files with 17 additions and 2204 deletions

View File

@@ -535,10 +535,14 @@ Run the SQL migrations against a local database with:
The web UI now lives in the top-level `ui/` module and is embedded into the Go binary at build time with `go:embed`.
- `make build` — builds the Svelte/Tailwind frontend, then compiles the Go server
**Use `pnpm` for all UI work in this repo.**
- `make build` — runs the real UI build first, then compiles the Go server
- `make test` — runs `svelte-check` for the frontend and `go test ./...` for the backend
- `make ui-build` — builds only the frontend into `internal/app/ui/dist`
- `make ui-install` — installs frontend dependencies with `pnpm install --frozen-lockfile`
- `make ui-build` — builds only the frontend bundle
- `make ui-dev` — starts the Vite dev server with hot reload on `http://localhost:5173`
- `make ui-check` — runs the frontend type and Svelte checks
### Local UI workflow