(config: {
plugins: PluginConfig[];
persist: PersistConfig;
cache: CacheConfigObject;
})
| 118 | * } |
| 119 | */ |
| 120 | export function executePlugins(config: { |
| 121 | plugins: PluginConfig[]; |
| 122 | persist: PersistConfig; |
| 123 | cache: CacheConfigObject; |
| 124 | }): Promise<PluginReport[]> { |
| 125 | return asyncSequential(config.plugins, async (pluginConfig, index) => { |
| 126 | const suffix = ansis.gray(`[${index + 1}/${config.plugins.length}]`); |
| 127 | const title = `Running plugin "${pluginConfig.title}" ${suffix}`; |
| 128 | const message = `Completed "${pluginConfig.title}" plugin execution`; |
| 129 | return logger.group(title, async () => { |
| 130 | const result = await executePlugin(pluginConfig, config); |
| 131 | return { message, result }; |
| 132 | }); |
| 133 | }); |
| 134 | } |
no test coverage detected