DEV Community

kim
kim

Posted on

2 1

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

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more