@bem/sdk.deps: parse()

node v8.17.0
version: master
endpointsharetweet
const deps = require('@bem/sdk.deps'); const parsed = await deps.parse()([{ entity: { block: 'a' }, data: [{ mustDeps: [{ block: 'b' }], shouldDeps: [{ block: 'c'}] }] }, { entity: { block: 'b' }, data: [{ shouldDeps: [{ mod: 'test' }] }] }, { entity: { block: 'c' }, data: [{ mustDeps: [{ elem: '1' }] }] } ]); parsed;
graph = deps.buildGraph(parsed);
graph.dependenciesOf({ block: 'a' })
Loading…

no comments

    sign in to comment