bem/bem-tools — pull request #349 by eprev (2013-02-15 07:12:49+00:00)
Title: Ability to specify source techs for BundlesLevelNode

Adds the ability to specify a different from bemjson.js technology to build bemdecl.js

make.js
```JavaScript
MAKE.decl('BundlesLevelNode', {
getSourceTechs: function () {
return ['xml', 'bemdecl.js'];
}
});
```

It's much more convenient than:

```JavaScript
MAKE.decl('BundlesLevelNode', {

/**
* Overriden.
*
* Filters out merged bundle name (takes place when merged
* bundle name directory exists on the file system).
*
* @return {Object[]}
*/
scanLevelItems: function () {

return _.uniq(
_.sortBy(
this.level.getItemsByIntrospection()
.filter(function (item) {

var type = U.bemType(item);

// filter out merged bundle, it will be configured later
if (type === 'block' && item.block === this.mergedBundleName()) return false;

// build only blocks and elems that have file in xml or bemdecl.js techs
return ~['block', 'elem'].indexOf(type) && ~['xml', 'bemdecl.js'].indexOf(item.tech);

}, this),
U.bemKey),
true,
U.bemKey);

}

});
```