bem-walk
v1.0.0-1
Published
bem-walk ========
Downloads
649
Readme
bem-walk
Install
$ npm install --save-dev bem-walk
Usage
var walk = require('bem-walk'),
stringify = require('JSONStream').stringify,
config = {
levels: {
'lib/bem-core/common.blocks': { scheme: 'nested' },
'lib/bem-core/desktop.blocks': { scheme: 'nested' },
'common.blocks': { scheme: 'flat' },
'desktop.blocks': { scheme: 'flat' }
}
};
walk([
'libs/bem-core/common.blocks',
'libs/bem-core/desktop.blocks',
'common.blocks',
'desktop.blocks'
], config)
.pipe(stringify())
.pipe(process.stdout);
// [{
// entity: { block: "page" },
// level: "libs/bem-core/desktop.blocks",
// tech: "bemhtml",
// path: "libs/bem-core/desktop.blocks/page/page.bemhtml"
// },
// ...
// ]
License
Code and documentation copyright 2014 YANDEX LLC. Code released under the Mozilla Public License 2.0.