MCPcopy
hub / github.com/thinkjs/thinkjs / startWatcher

Method startWatcher

lib/application.js:79–87  ·  view source on GitHub ↗

* start watcher

()

Source from the content-addressed store, hash-verified

77 * start watcher
78 */
79 startWatcher() {
80 const Watcher = this.options.watcher;
81 if (!Watcher) return;
82 const instance = new Watcher({
83 srcPath: path.join(this.options.ROOT_PATH, 'src'),
84 diffPath: this.options.APP_PATH
85 }, fileInfo => this._watcherCallBack(fileInfo));
86 instance.watch();
87 }
88 /**
89 * parse argv
90 */

Callers 1

runMethod · 0.95

Calls 2

_watcherCallBackMethod · 0.95
watchMethod · 0.95

Tested by

no test coverage detected