Generate small reusable component partitions with explicit provider dependencies, GitHub-hosted concurrency, fail-closed evidence, and exact mobile store gates. Include the literal-i18n fix from #206 so validation covers the exact post-merge tree.
13 lines
727 B
JavaScript
13 lines
727 B
JavaScript
import { componentNodeCatalog, compositionImportRules } from "./component-node-catalog.mjs";
|
|
import { createDependencyGraph, parseCatalog } from "./graph.mjs";
|
|
import { inferImportGraph } from "./import-resolver.mjs";
|
|
import { attachTestInventory } from "./test-inventory.mjs";
|
|
|
|
export async function loadRepositoryTestGraph(repositoryRoot) {
|
|
const parsedCatalog = parseCatalog(componentNodeCatalog);
|
|
const importGraph = await inferImportGraph(repositoryRoot, parsedCatalog, compositionImportRules);
|
|
const graph = createDependencyGraph(parsedCatalog, importGraph.dependencies, { collapseCycles: true });
|
|
await attachTestInventory(repositoryRoot, parsedCatalog, graph);
|
|
return { parsedCatalog, importGraph, graph };
|
|
}
|