MCPcopy Create free account
hub / github.com/BuilderIO/framework-benchmarks / build

Function build

src/helpers/build.ts:6–22  ·  view source on GitHub ↗
(frameworks: string[], parallel = true)

Source from the content-addressed store, hash-verified

4 * Build a list of frameworks
5 */
6export 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

Callers 1

build.tsFile · 0.85

Calls 1

buildFrameworkFunction · 0.85

Tested by

no test coverage detected