Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 437 Bytes

watch-files-and-run-a-command.md

File metadata and controls

21 lines (13 loc) · 437 Bytes

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"

Posted Aug 24, 2019.

https://www.darklaunch.com/2019/08/24/watch-files-and-run-a-command.html