(frameworks: string[], parallel = true)
| 4 | * Build a list of frameworks |
| 5 | */ |
| 6 | export async function build(frameworks: string[], parallel = true) { |
| 7 | const buildResults: Record<string, number> = {}; |
| 8 | |
| 9 | if (parallel) { |
| 10 | await Promise.all( |
| 11 | frameworks.map(async (framework) => { |
| 12 | buildResults[framework] = await buildFramework(framework); |
| 13 | }) |
| 14 | ); |
| 15 | } else { |
| 16 | for (const framework of frameworks) { |
| 17 | buildResults[framework] = await buildFramework(framework); |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | return buildResults; |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Build a single framework |
no test coverage detected