Loads and initializes all addons for this project. @private @method initializeAddons
()
| 425 | @method initializeAddons |
| 426 | */ |
| 427 | initializeAddons() { |
| 428 | if (this._addonsInitialized) { |
| 429 | return; |
| 430 | } |
| 431 | this._addonsInitialized = true; |
| 432 | this._didDiscoverAddons = false; |
| 433 | |
| 434 | logger.info('initializeAddons for: %s', this.name()); |
| 435 | |
| 436 | this.discoverAddons(); |
| 437 | |
| 438 | this.addons = instantiateAddons(this, this, this.addonPackages); |
| 439 | this.addons.forEach((addon) => logger.info('addon: %s', addon.name)); |
| 440 | } |
| 441 | |
| 442 | /** |
| 443 | Returns what commands are made available by addons by inspecting |
no test coverage detected