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

Method config

lib/models/project.js:232–241  ·  view source on GitHub ↗

Loads the configuration for this project and its addons. @public @method config @param {String} env Environment name @return {Object} Merged configuration object

(env)

Source from the content-addressed store, hash-verified

230 @return {Object} Merged configuration object
231 */
232 config(env) {
233 let _env = env === undefined ? process.env.EMBER_ENV : env;
234 let key = `${this.configPath()}|${_env}`;
235 let config = this.configCache.get(key);
236 if (config === undefined) {
237 config = this.configWithoutCache(_env);
238 this.configCache.set(key, config);
239 }
240 return cloneDeep(config);
241 }
242
243 /**
244 * @private

Callers 7

get-serve-url.jsFile · 0.45
startHttpServerMethod · 0.45
testemMiddlewareMethod · 0.45
shouldAddMiddlewareMethod · 0.45
getAddonsConfigMethod · 0.45

Calls 3

configPathMethod · 0.95
configWithoutCacheMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected