gather-reverse-deps

0.1.3 • Public • Published

gather-reverse-deps

BEM related reverse dependencies resolver

standard-readme compliant

Table of Contents

Background

Install

npm i -g gather-reverse-deps

Usage

$ gather-reverse-deps button *.blocks libs/islands/*.blocks
attach
services-table_type_turkish
m-editor-popup_type_file
i-splendid
m-editor
m-editor-popup_type_picture
m-head-action
... etc
const gatherDeps = require('gather-reverse-deps');
 
gatherDeps.invoke({}, {
    entities: 'button',
    levels: [
        '/Users/qfox/repos/islands/common.blocks',
        '/Users/qfox/repos/islands/deskpad.blocks',
        '/Users/qfox/repos/islands/desktop.blocks',
        '/Users/qfox/repos/islands/touch-pad.blocks',
        '/Users/qfox/repos/islands/touch-phone.blocks',
        '/Users/qfox/repos/islands/touch.blocks'
    ]
})
.then(console.log);
// [ { entity: { block: 'attach' } },
//   { entity: { block: 'services-table', mod: [Object] } },
//   { entity: { block: 'm-editor-popup', mod: [Object] } },
//   { entity: { block: 'i-splendid' } },
//   { entity: { block: 'm-editor' } },
//   { entity: { block: 'm-editor-popup', mod: [Object] } },
//   { entity: { block: 'm-head-action' } },
//   { entity: { block: 'm-head' } },
//   { entity: { block: 'm-head-menu' } },
//   ... etc

Contribute

Feel free to open an issue or file a PR.

License

MIT © 2016 Alexey Yaroshevich

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.3
    0
  • 0.1.2
    0
  • 0.1.1
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i gather-reverse-deps

Weekly Downloads

2

Version

0.1.3

License

MIT

Last publish

Collaborators

  • qfox