quake-build / quake-old

A meta-build system powered by nushell
https://quake.build
MIT License
9 stars 0 forks source link

Add file watching mode #14

Open cassaundra opened 10 months ago

cassaundra commented 10 months ago

Resolves #10.

Implementation

Usage

Activated with -W/--watch command-line arguments.

Proposed watch mode implementation:

  1. Evaluate the build tree as if in normal run mode.
  2. Initialize file watchers (with notify) on all files according to task sources.
  3. When a file changes, find all tasks that use that file as a source, and re-run all in breadth-first order.

Notes