core/steps/graph.step.ts

core/steps/graph.step.ts is a file in Bane's Lab Build Scripts. 14 lines of code and 2 definitions.

import { absolutePath } from "@ssot/paths";
import { defineStep } from "#core/factories/step.factory";
import { deriveGraph } from "#core/coordinators/graph.coordinator";
import { ontologyOf } from "#core/guards/site.guard";

const GRAPH = "graph";

defineStep({
    cache: null,
    name: GRAPH,
    needs: ["ontology", "metrics", "links"],
    phase: "start",
    async run(state) {
        return { gives: {}, line: await deriveGraph(absolutePath("app.member"), ontologyOf(state, GRAPH)) };
    },
});