(options)
| 55 | } |
| 56 | |
| 57 | async constructBroccoliWatcher(options) { |
| 58 | const { Watcher } = require('broccoli'); |
| 59 | await this.builder.ensureBroccoliBuilder(); |
| 60 | const { watchedSourceNodeWrappers } = this.builder.builder; |
| 61 | |
| 62 | let watcher = new Watcher(this.builder, watchedSourceNodeWrappers, { saneOptions: options, ignored: this.ignored }); |
| 63 | |
| 64 | watcher.start(); |
| 65 | |
| 66 | return watcher; |
| 67 | } |
| 68 | |
| 69 | setupBroccoliChangeEvent() { |
| 70 | // This is to keep backwards compatibility with broccoli-sane-watcher. |
no test coverage detected