Every command in package.json, and what it is for.
Development
Command | What it does |
|---|---|
| Vite dev server with HMR, at |
| Tauri dev shell — native window with HMR against the Vite dev server |
| Vitest in watch mode |
| Playwright end-to-end suite |
Production builds
Command | What it does |
|---|---|
| Browser production build (static output) |
| Tauri production binary and installers for the host OS |
| Serve the browser production build locally |
Quality gates
Command | What it does |
|---|---|
|
|
| Prettier write |
|
|
|
|
| Vitest single-run |
| Spec cross-reference gate; exits 1 on drift |
| Refetch the cached OpenAPI spec before checking |
Before shipping a change
pnpm lint && pnpm check && pnpm test && pnpm coverage
All four green. Then rebuild and reinstall the desktop app if the change touched anything the user sees.
pkill -f haproxy_uiTAURI_BUILD=1 pnpm exec tauri buildcp -R "src-tauri/target/release/bundle/macos/HAProxy UI.app" /Applications/codesign --force --deep --sign - "/Applications/HAProxy UI.app"open "/Applications/HAProxy UI.app"
Local Dataplane stack
docker compose up -d # haproxy:3.1 + dataplaneapi:3.1curl -s http://localhost:5555/v3/services/haproxy/configuration/version -u admin:admin docker compose down -v && docker compose up -d # reset the persisted config
Ports: 80 HAProxy, 5555 Dataplane API, 8404 stats. Seeded with HTTP Basic admin:admin. Volumes persist configuration edits across restarts, so use down -v when you need a clean baseline.
Known gotchas
pnpm install:devhas a cwd bug: its internalcargo cleansilently no-ops. UseTAURI_BUILD=1 pnpm exec tauri builddirectly when you need a clean Rust rebuild./usr/libexec/plutildoes not exist on all macOS versions; the icon-name step ofinstall:devfails harmlessly./usr/libexec/PlistBuddyis available.