* @param {import('./core.config.js').default} config
(config)
| 123 | * @param {import(class="st">'./core.config.js').default} config |
| 124 | */ |
| 125 | function allPlugins(config) { |
| 126 | const localIds = {}; |
| 127 | const plugins = []; |
| 128 | const keys = Object.keys(registry.plugins.items); |
| 129 | for (let i = 0; i < keys.length; i++) { |
| 130 | plugins.push(registry.getPlugin(keys[i])); |
| 131 | } |
| 132 | |
| 133 | const local = config.plugins || []; |
| 134 | for (let i = 0; i < local.length; i++) { |
| 135 | const plugin = local[i]; |
| 136 | |
| 137 | if (plugins.indexOf(plugin) === -1) { |
| 138 | plugins.push(plugin); |
| 139 | localIds[plugin.id] = true; |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | return {plugins, localIds}; |
| 144 | } |
| 145 | |
| 146 | function getOpts(options, all) { |
| 147 | if (!all && options === false) { |
no test coverage detected