wchd v0.10.2
Extensible watcher daemon (powered by fb-watchman)
A single, resilient connection shared between all packages via the wch client.
const wch = ; // create a serverconst server = ; // watcher methodswch;wch;wch;wch;wch;wch;
CLI
wch start
start the daemonwch stop
stop the daemon
Watching
wch .
watch current directorywch -u .
unwatch current directorywch ./foo
watch a relative directorywch -u ./foo
unwatch a relative directorywch . -f
watch current directory temporarily
The foreground (-f
) watcher is lighter weight, because it only loads plugins that the current directory needs (instead of every plugin that every watched directory needs), and the API server isn't started.