* Discovers all addons for this project and stores their names and * package.json contents in this.addonPackages as key-value pairs. * * Any packageInfos that we find that are marked as not valid are excluded. * * @private * @method discoverAddons
()
| 406 | * @method discoverAddons |
| 407 | */ |
| 408 | discoverAddons() { |
| 409 | if (this._didDiscoverAddons) { |
| 410 | return; |
| 411 | } |
| 412 | this._didDiscoverAddons = true; |
| 413 | |
| 414 | let addonPackageList = this._packageInfo.discoverProjectAddons(); |
| 415 | this.addonPackages = this._packageInfo.generateAddonPackages(addonPackageList); |
| 416 | |
| 417 | // in case any child addons are invalid, dump to the console about them. |
| 418 | this._packageInfo.dumpInvalidAddonPackages(addonPackageList); |
| 419 | } |
| 420 | |
| 421 | /** |
| 422 | Loads and initializes all addons for this project. |
no test coverage detected