Documentation
¶
Overview ¶
Package main runs `go build` on file changes and atomically swaps the running binary. Replaces `air` for the backend dev loop because air kills the running process before building, forcing a multi-second downtime window on every save. devloop builds first, then signals the old child to exit before starting the new one — the dead window is bounded by graceful shutdown, not by build time.
devloop is also the dev-time process supervisor: auxiliary children given via -proc (the dash0/status0 `bun run dev` servers) run as children of this foreground process and are reaped on shutdown, and every supervised stream (devloop's own lines, build output, each child's combined stdout/stderr) is mirrored to the terminal and to a size-rotated <name>.log under -log-dir.