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

Method buildOptions

lib/models/watcher.js:140–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138 }
139
140 buildOptions() {
141 let watcher = this.options && this.options.watcher;
142
143 if (watcher && ['polling', 'watchman', 'node', 'events'].indexOf(watcher) === -1) {
144 throw new Error(`Unknown watcher type --watcher=[polling|watchman|node|events] but was: ${watcher}`);
145 }
146
147 return {
148 verbose: this.verbose,
149 poll: watcher === 'polling',
150 watchman: watcher === 'watchman' || watcher === 'events',
151 node: watcher === 'node',
152 };
153 }
154
155 then() {
156 return this.watcher.currentBuild.then.apply(this.watcher.currentBuild, arguments);

Callers 2

setupBroccoliWatcherMethod · 0.95
watcher-test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected