updated AGENTS.md
This commit is contained in:
@ -13,12 +13,12 @@
|
|||||||
## Build, Test, and Development Commands
|
## Build, Test, and Development Commands
|
||||||
- `make frontend-build`: installs web dependencies, runs Vite production build, copies `web/dist` to `internal/static/dist`.
|
- `make frontend-build`: installs web dependencies, runs Vite production build, copies `web/dist` to `internal/static/dist`.
|
||||||
- `make backend-build`: builds Go binary at `bin/supervisor`.
|
- `make backend-build`: builds Go binary at `bin/supervisor`.
|
||||||
- `make build`: full build (frontend + backend).
|
- `make build`: runs `scripts/build-all.sh` for the full build pipeline (frontend + backend).
|
||||||
- `make run`: builds everything and starts the app.
|
- `make run`: builds everything and starts the app.
|
||||||
- `cd web && npm run dev`: frontend dev server with proxy to backend (`:8080`).
|
- `cd web && npm run dev`: frontend dev server with proxy to backend (`:8080`).
|
||||||
- `go test ./...`: run backend unit tests (when tests are present).
|
- `go test ./...`: run backend unit tests (when tests are present).
|
||||||
|
|
||||||
Do not edit `internal/static/dist` by hand; it is generated from `web/dist` by `make frontend-build`.
|
Do not edit `internal/static/dist` by hand; it is generated from `web/dist` by `make frontend-build` and refreshed during `make build`. The full build restores the tracked `internal/static/dist/index.html` placeholder after embedding generated assets.
|
||||||
|
|
||||||
## Coding Style & Naming Conventions
|
## Coding Style & Naming Conventions
|
||||||
- Go: format with `gofmt`; package names lowercase; exported symbols in `CamelCase`; errors as `err` with wrapped context.
|
- Go: format with `gofmt`; package names lowercase; exported symbols in `CamelCase`; errors as `err` with wrapped context.
|
||||||
|
|||||||
Reference in New Issue
Block a user