feat(watcher): migrate to fsnotify (#2048)

This commit is contained in:
Andrey Nering
2025-03-22 20:06:16 -03:00
committed by GitHub
parent 89caf1e049
commit 0d5f2b5dab
14 changed files with 245 additions and 173 deletions

View File

@@ -2285,9 +2285,11 @@ With the flags `--watch` or `-w` task will watch for file changes and run the
task again. This requires the `sources` attribute to be given, so task knows
which files to watch.
The default watch interval is 5 seconds, but it's possible to change it by
either setting `interval: '500ms'` in the root of the Taskfile or by passing it
as an argument like `--interval=500ms`.
The default watch interval is 100 milliseconds, but it's possible to change it
by either setting `interval: '500ms'` in the root of the Taskfile or by passing
it as an argument like `--interval=500ms`.
This interval is the time Task will wait for duplicated events. It will only run
the task again once, even if multiple changes happen within the interval.
Also, it's possible to set `watch: true` in a given task and it'll automatically
run in watch mode: