Skip to main content

Module reporter

Module reporter 

Source
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:10

Structs§

RebuildReporter
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 where time cannot read the system timezone).