Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 971 Bytes

README.md

File metadata and controls

42 lines (30 loc) · 971 Bytes

enb-bem-babel

NPM version

Available technologies:

  • bem-babel

Usage

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');
    });
};

License

Code and documentation copyright 2015 YANDEX LLC. Code released under the Mozilla Public License 2.0.