DEV Community

kim
kim

Posted on

Watchman Cheat Sheet

Also see

watchman watch ~/src
watchman watch-list
watchman watch-del ~/src
Enter fullscreen mode Exit fullscreen mode

Getting started

watchman watch ./src
Enter fullscreen mode Exit fullscreen mode

Adds ./src to the watch list.

watchman -- trigger ./src retest '*.js' -- npm test
Enter fullscreen mode Exit fullscreen mode

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

Reference

Discussion (0)