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

Method _initProject

lib/broccoli/ember-app.js:187–198  ·  view source on GitHub ↗

Initializes the `project` property from `options.project` or the closest Ember CLI project from the current working directory. @private @method _initProject @param {Object} options

(options)

Source from the content-addressed store, hash-verified

185 @param {Object} options
186 */
187 _initProject(options) {
188 let app = this;
189
190 this.project = options.project || Project.closestSync(process.cwd());
191
192 if (options.configPath) {
193 this.project.configPath = function () {
194 return app._resolveLocal(options.configPath);
195 };
196 this.project.configCache.clear();
197 }
198 }
199
200 /**
201 Initializes the `options` property from the `options` parameter and

Callers 1

constructorMethod · 0.95

Calls 2

closestSyncMethod · 0.80
_resolveLocalMethod · 0.80

Tested by

no test coverage detected