* start watcher
()
| 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 | */ |
no test coverage detected