8 - "watchexec --excts js,jsx -- npm test"
11 [mattgreen/watchexec](https://github.com/mattgreen/watchexec) runs commands whenever certain files change.
19 brew install watchexec
25 cargo install watchexec
28 For Linux and Windows, get it from [GitHub releases](https://github.com/mattgreen/watchexec).
33 watchexec --exts js,jsx -- npm test
36 Runs `npm test` when `js,jsx` files change.
39 watchman -w lib -w test -- npm test
42 Runs `npm test` when `lib/` and `test/` files change.
48 | `-c` `--clear` | Clear screen |
49 | `-r` `--restart` | Restart process if its still running |
53 | `-s` `--signal SIGKILL` | Kill signal to use |
54 | `-d` `--debounce MS` | Debounce by `MS` milliseconds |
55 | `-e` `--exts EXTS` | Extensions |
56 | `-i` `--ignore PATTERN` | Ignore these files |
57 | `-w` `--watch PATH` | Watch these directories |
61 * [mattgreen/watchexec](https://github.com/mattgreen/watchexec) _(github.com)_