Available technologies:
- bem-babel
Install the package:
$ npm instal --save-dev enb-bem-babel
Add the tech to your project's make.js
var bemTechs = require('enb-bem-techs'),
fileProvideTech = require('enb/techs/file-provider')
bemBabel = require('enb-bem-babel/techs/bem-babel');
module.exports = function(config) {
config.node('bundle', function(node) {
node.addTechs([
[fileProvideTech, { target : '?.bemdecl.js' }],
[bemTechs.levels, { levels : ['blocks'] }],
[bemTechs.deps],
[bemTechs.files]
[bemBabel, { target : '?.js' }]
]);
node.addTarget('?.js');
});
};
Code and documentation copyright 2015 YANDEX LLC. Code released under the Mozilla Public License 2.0.