watchexec

Run arbitrary commands when files change.

TLDR

Call ls -la when any file in the current directory changes

>_ watchexec -- [ls -la]
copy

Run make when any JavaScript, CSS and HTML files in the current directory change

>_ watchexec --exts [js,css,html] make
copy

Run make when any file in the lib or src subdirectories change

>_ watchexec --watch [lib] --watch [src] [make]
copy

Call/restart my_server when any file in the current directory change, sending SIGKILL to stop the child process

>_ watchexec --restart --signal [SIGKILL] [my_server]
copy

Copied to clipboard
free 100$ digital ocean credit