1.5 KiB
1.5 KiB
Commands for agents
Run everything from the repository root.
| Command | What it does |
|---|---|
make build |
Invariants, clean install from lockfiles (ci), production build of web/ and api/. Never deploys. |
make dev |
Invariants, incremental build. Start dev servers as printed at the end. |
make test |
Invariants, then lint, typecheck and tests for web/ and api/. |
make build PACKAGE_ONLY=1 |
Build and verify only; nothing started or deployed. |
Each target runs scripts/check-invariants.sh first. A failing invariant stops the command.
Values to confirm (placeholders)
- Package manager: detected from the lockfile in each app (
pnpm-lock.yaml,yarn.lockorpackage-lock.json). The owner has not chosen one yet; pick one in T-006 and record it indocs/decisions.md. - Each app must define the npm scripts
build,lint,typecheckandtest.make testfails if one is missing. web/builds toweb/.next;api/builds toapi/dist.
Before the project exists
Until web/ and api/ are created (T-006), make build, make dev and make test stop with a clear message. That is expected.
Reporting
After running a command, report the exact command and its real outcome. Do not claim success from a build alone; tests and invariants must have run.
Deployment (only when the owner asks)
Deploy files live in deploy/ (T-007). Server facts and Traefik labels are in docs/architecture.md. Verify the server state first (T-001).