watchexec

Run arbitrary commands when files change. More information: https://github.com/watchexec/watchexec.

watchexec ls -la

watchexec --exts js,css,html make

watchexec --watch lib --watch src make

watchexec --restart --stop-signal SIGKILL my_server