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

Method configWithoutCache

lib/models/project.js:249–260  ·  view source on GitHub ↗

* @private * @method configWithoutCache * @param {String} env Environment name * @return {Object} Merged configuration object

(env)

Source from the content-addressed store, hash-verified

247 * @return {Object} Merged configuration object
248 */
249 configWithoutCache(env) {
250 let configPath = this.configPath();
251
252 if (fs.existsSync(`${configPath}.js`)) {
253 let appConfig = this.require(configPath)(env);
254 let addonsConfig = this.getAddonsConfig(env, appConfig);
255
256 return merge(addonsConfig, appConfig);
257 } else {
258 return this.getAddonsConfig(env, {});
259 }
260 }
261
262 /**
263 Returns the targets of this project, or the default targets if not present.

Callers 1

configMethod · 0.95

Calls 3

configPathMethod · 0.95
requireMethod · 0.95
getAddonsConfigMethod · 0.95

Tested by

no test coverage detected