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

Method getAddonsConfig

lib/models/project.js:298–310  ·  view source on GitHub ↗

Returns the addons configuration. @private @method getAddonsConfig @param {String} env Environment name @param {Object} appConfig Application configuration @return {Object} Merged configuration of all addons

(env, appConfig)

Source from the content-addressed store, hash-verified

296 @return {Object} Merged configuration of all addons
297 */
298 getAddonsConfig(env, appConfig) {
299 this.initializeAddons();
300
301 let initialConfig = merge({}, appConfig);
302
303 return this.addons.reduce((config, addon) => {
304 if (addon.config) {
305 merge(config, addon.config(env, config));
306 }
307
308 return config;
309 }, initialConfig);
310 }
311
312 /**
313 Returns whether or not the given file name is present in this project.

Callers 1

configWithoutCacheMethod · 0.95

Calls 2

initializeAddonsMethod · 0.95
configMethod · 0.45

Tested by

no test coverage detected