graph: quick start

node v10.15.3
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