Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

@bem/sdk.deps: parse()

node v8.16.2
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