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

Method discoverAddons

lib/models/project.js:408–419  ·  view source on GitHub ↗

* Discovers all addons for this project and stores their names and * package.json contents in this.addonPackages as key-value pairs. * * Any packageInfos that we find that are marked as not valid are excluded. * * @private * @method discoverAddons

()

Source from the content-addressed store, hash-verified

406 * @method discoverAddons
407 */
408 discoverAddons() {
409 if (this._didDiscoverAddons) {
410 return;
411 }
412 this._didDiscoverAddons = true;
413
414 let addonPackageList = this._packageInfo.discoverProjectAddons();
415 this.addonPackages = this._packageInfo.generateAddonPackages(addonPackageList);
416
417 // in case any child addons are invalid, dump to the console about them.
418 this._packageInfo.dumpInvalidAddonPackages(addonPackageList);
419 }
420
421 /**
422 Loads and initializes all addons for this project.

Callers 4

initializeAddonsMethod · 0.95
initializeAddonsFunction · 0.80
project-test.jsFile · 0.80

Calls 3

discoverProjectAddonsMethod · 0.80
generateAddonPackagesMethod · 0.80

Tested by

no test coverage detected