Cheatsheets
 / watchexec
↑ ↓ to navigate     ↵ to select     Esc to close
suggest edit
Getting started
Other options

Intro

watchexec executes commands in response to file modifications

Installation:

Getting started

watchexec --exts js,jsx -- npm test

Runs npm test when js,jsx files change.

watchman -w lib -w test -- npm test

Runs npm test when lib/ and test/ files change.

Other options

Flags:

name description
-c --clear Clear screen
-r --restart Restart process if its still running

Options:

name description
-s --signal SIGKILL Kill signal to use
-d --debounce MS Debounce by MS milliseconds
-e --exts EXTS Extensions
-i --ignore PATTERN Ignore these files
-w --watch PATH Watch these directories