cristianoliveira / funzzy

A lightweight blazingly fast file watcher.
MIT License
239 stars 11 forks source link

feat: run in fail-fast and non-block by default #191

Open cristianoliveira opened 4 months ago

cristianoliveira commented 4 months ago

BREAKING CHANGE: the watcher won't run all tasks but report back on the first failing one

The breaking change is subtle but if one relies on the old behavior of always running all tasks, it's a breaking for them, we'll provide option flags to do so

Reasoning:

I get myself using this form of workflow like TDD red -> green -> refactor:

  1. Change code
  2. Run all checks
  3. Is there a failing check? Then go to 5 (RED), else go to 4
  4. Add to git and commit (GREEN)
  5. Fix what failing the checks (REFACTOR) and go to 2

And with --fail-fast it gives you a nice flow where you "Fix the next failing thing" till all checks are GREEN