@bem/sdk.deps: parse()

node v8.17.0
version: 1.0.1
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;
// Show the dependencies in a readable format. parsed.map(e => e.vertex.id + ' => ' + e.dependOn.id);
Loading…

no comments

    sign in to comment