A companion executable for Chokidar that lets you run a command when a file in the given path(s) changes.
npm install -g watchy
Usage: watchy [-w paths,to,watch] -- command arg1 arg2...Options:--watch, -w A path or comma-separated paths to watch.--ignore, -i A regex of file paths to ignore. [default: "/\\."]--keep-alive, -k Restart the process if it exits. Useful for servers. [default: false]--wait, -W Time (sec) to wait after sending SIGTERM to forcefully SIGKILL. [default: 0]
watchy -w lib -- say "The lib directory changed."