@returns {Plugins}
()
| 56 | |
| 57 | /** @returns {Plugins} */ |
| 58 | load() { |
| 59 | this.plugins = globs.sync(this.pluginLocations).map(sourcePath => { |
| 60 | if (!this.includedFilter(sourcePath)) { |
| 61 | return; |
| 62 | } |
| 63 | const plugin = new Plugin({ |
| 64 | framework: this.framework, |
| 65 | sourcePath, |
| 66 | log: this.log, |
| 67 | warn: this.warn |
| 68 | }); |
| 69 | plugin.load(); |
| 70 | return plugin; |
| 71 | }).filter(Boolean); |
| 72 | return this; |
| 73 | } |
| 74 | |
| 75 | /** @returns {JSONFileItem} */ |
| 76 | getAllPackageJSONFileItems() { |