graph: quick start

node v10.24.1
version: 1.0.0
endpointsharetweet
const BemGraph = require('@bem/sdk.graph').BemGraph; const graph = new BemGraph(); graph.vertex({ block: 'a' }) .dependsOn({ block: 'b' }); graph.vertex({ block: 'b' }) .dependsOn({ block: 'c' }) .linkWith({ block: 'd'}); JSON.stringify(graph.dependenciesOf({ block: 'a' }));
Loading…

no comments

    sign in to comment