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)
| 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. |
no test coverage detected