Watchman
A cheatsheet by @rstacruz|Refreshed 7 months ago.Refresh|View source on Github

Getting started

Getting started

watchman watch ./src

Adds ./src to the watch list.

watchman -- trigger ./src retest '*.js' -- npm test

Adds a trigger called retest to run npm test every time *.js changes in ./src.

Watching

Watching

watchman watch ~/src
watchman watch-list
watchman watch-del ~/src