Watch files and run a command

Watch the current directory for changes and run a command using watchman.

Install watchman:

$ brew install watchman

Use watchman-make to automatically run a command when any files matching the pattern ("-p") change:

$ watchman-make -p "**" --run "/usr/bin/do_thing --verbose"
If you liked this posting, please feel free to leave me a comment below.
View this page on GitHub.
Posted .


Leave a Reply