516f1b1946
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1.2 KiB
1.2 KiB
Copilot Development Instructions
Makefile Usage (MANDATORY)
Always use the Makefile for development tasks. Never run raw go test, go vet, or bun commands directly.
Quick Reference
| Task | Command | Description |
|---|---|---|
| Run tests | make test |
Run Go tests |
| Run linter | make lint |
Run go vet |
| Format code | make format |
Run gofmt |
| Coverage report | make coverage |
Run Go coverage with -coverpkg |
| Full check | make check |
Run lint + coverage |
| Race tests | make race |
Run go test -race |
| Fuzz smoke run | make fuzz |
Run all fuzz targets briefly |
| Build frontend | make build |
TypeScript typecheck + bundle |
| Build Go binary | make build-go |
Build CLI binary |
| Full rebuild | make build-all |
Clean + deps + build + checks |
| See all targets | make help |
Show all available commands |
Development Workflow
- Before changes: Run
make checkto establish baseline. - After changes: Run
make checkandmake race. - Frontend edits: Run
make buildafter changingwebterm/static/js/terminal.ts. - Major validation: Run
make build-allfor a reproducible full run.