watchman
A service that watches files, and triggers actions when changes occur. tldr-pages
On several platforms
Several platforms
Infer the root directory of the project containing the specified directory, and watch its files and sub-folders for changes
watchman watch-project path/to/directoryIdentifyAdd a trigger to run a command when files with a specified filename pattern in a watched directory change
watchman -- trigger path/to/watched_directory trigger_name 'pattern' -- commandIdentifyList all watched directories
watchman watch-listIdentifyDelete a watch on a directory and its associated triggers
watchman watch-del path/to/watched_directoryIdentifyDelete all watched directories and triggers
watchman watch-del-allIdentifyList all triggers on a watched directory
watchman trigger-list path/to/watched_directoryIdentifyDelete a trigger from a watched directory
watchman trigger-del path/to/watched_directory trigger_nameIdentifyTemporarily stop watchman, until the next time you call a watchman command
watchman shutdown-serverIdentify