Expand description
Terminal reporter for dev-server rebuild loops.
RebuildReporter manages the rolling-line UX where consecutive
successful rebuilds repaint a single terminal line in place,
while errors and banners commit it with a newline. It also
emits a wall-clock timestamp so users can see when each
rebuild fired without needing to glance at a clock.
Sample output across three rebuilds and one error:
⚡ WebUI dev server
➜ http://localhost:3333/
↻ rebuilt app-shell.css in 0.3s 16:42:51 ← repainted in place
↻ rebuilt index.html in 0.4s 16:42:58 ← (replaces previous line)
✘ build error: parse failed ← framed by blank lines
↻ rebuilt styles.css (+2 more) in 0.2s 16:43:10Structs§
- Rebuild
Reporter - Stateful terminal reporter for rebuild loops.
Functions§
- local_
hms - Format wall-clock local time as
HH:MM:SS. Falls back to UTC if the platform refuses to expose the local offset (e.g. some sandboxed environments wheretimecannot read the system timezone).