diff --git a/packages/angular-cli/ember-cli/lib/models/project.js b/packages/angular-cli/ember-cli/lib/models/project.js index fa0fcc206fcf..de19baad7e82 100644 --- a/packages/angular-cli/ember-cli/lib/models/project.js +++ b/packages/angular-cli/ember-cli/lib/models/project.js @@ -119,23 +119,6 @@ Project.prototype.isEmberCLIAddon = function() { return !!this.pkg.keywords && this.pkg.keywords.indexOf('ember-addon') > -1; }; -/** - Returns the path to the configuration. - - @private - @method configPath - @return {String} Configuration path - */ -Project.prototype.configPath = function() { - var configPath = 'config'; - - if (this.pkg['ember-addon'] && this.pkg['ember-addon']['configPath']) { - configPath = this.pkg['ember-addon']['configPath']; - } - - return path.join(configPath, 'environment'); -}; - /** Loads the configuration for this project and its addons. @@ -145,31 +128,9 @@ Project.prototype.configPath = function() { @return {Object} Merged confiration object */ Project.prototype.config = function(env) { - var configPath = this.configPath(); - - if (existsSync(path.join(this.root, configPath + '.js'))) { - var appConfig = this.require('./' + configPath)(env); - var addonsConfig = this.getAddonsConfig(env, appConfig); - - return merge(addonsConfig, appConfig); - } else { - return this.getAddonsConfig(env, {}); - } -}; - -/** - Returns the addons configuration. - - @private - @method getAddonsConfig - @param {String} env Environment name - @param {Object} appConfig Application configuration - @return {Object} Merged configuration of all addons - */ -Project.prototype.getAddonsConfig = function(env, appConfig) { this.initializeAddons(); - var initialConfig = merge({}, appConfig); + var initialConfig = {}; return this.addons.reduce(function(config, addon) { if (addon.config) {