Options (3)
-e, --extsbooleanRun `make` when any JavaScript, CSS, and HTML file in the current directory changes
Example:
watchexec {{[-e|--exts]}} {{js,css,html}} make-w, --watchbooleanRun `make` when any file in the `lib` or `src` directory changes
Example:
watchexec {{[-w|--watch]}} {{lib}} {{[-w|--watch]}} {{src}} {{make}}-r, --restartbooleanCall/restart `my_server` when any file in the current directory changes, sending `SIGKILL` to stop the child process
Example:
watchexec {{[-r|--restart]}} --stop-signal {{SIGKILL}} {{my_server}}Examples (5)
Run `make` when any JavaScript, CSS, and HTML file in the current directory changes
Run `make` when any file in the `lib` or `src` directory changes
Call/restart `my_server` when any file in the current directory changes, sending `SIGKILL` to stop the child process
watchexec [-r|--restart] --stop-signal SIGKILL my_servermade by @shridhargupta | data from tldr-pages