gather-reverse-deps
BEM related reverse dependencies resolver
Table of Contents
Background
Install
npm i -g gather-reverse-deps
Usage
$ gather-reverse-deps button *.blocks libs/islands/*.blocksattachservices-table_type_turkishm-editor-popup_type_filei-splendidm-editorm-editor-popup_type_picturem-head-action... etc
const gatherDeps = ; gatherDeps;// [ { 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