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

Method initializeAddons

lib/models/project.js:427–440  ·  view source on GitHub ↗

Loads and initializes all addons for this project. @private @method initializeAddons

()

Source from the content-addressed store, hash-verified

425 @method initializeAddons
426 */
427 initializeAddons() {
428 if (this._addonsInitialized) {
429 return;
430 }
431 this._addonsInitialized = true;
432 this._didDiscoverAddons = false;
433
434 logger.info('initializeAddons for: %s', this.name());
435
436 this.discoverAddons();
437
438 this.addons = instantiateAddons(this, this, this.addonPackages);
439 this.addons.forEach((addon) => logger.info('addon: %s', addon.name));
440 }
441
442 /**
443 Returns what commands are made available by addons by inspecting

Callers 12

getAddonsConfigMethod · 0.95
eachAddonCommandMethod · 0.95
reloadAddonsMethod · 0.95
findAddonByNameMethod · 0.95
runFunction · 0.45
runFunction · 0.45
addonMiddlewaresMethod · 0.45
nullProjectMethod · 0.45
eachAddonInvokeFunction · 0.45
_eachProjectAddonInvokeFunction · 0.45
initChildAddonsMethod · 0.45

Calls 3

nameMethod · 0.95
discoverAddonsMethod · 0.95
instantiateAddonsFunction · 0.85

Tested by

no test coverage detected