MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / constructBroccoliWatcher

Method constructBroccoliWatcher

lib/models/watcher.js:57–67  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

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.

Callers 1

setupBroccoliWatcherMethod · 0.95

Calls 2

ensureBroccoliBuilderMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected