enb-bemify-es2015

An ENB tech which transpiles javascript files with ES6 or more syntax to ES5 syntax javascript using babel


Keywords
enb, bem, tech, babel, bemify, ES6, ES2015, transpiler
License
ICU
Install
npm install enb-bemify-es2015@0.4.0

Documentation

enb-bemify-js

Build Status An ENB tech which transpiles javascript files with ES6 and higher syntax to the ES5 syntax javascript using babel

Description

This tech transpiles javascript files with ES6 and higher syntax using babel to the ES5 files. The tech uses Babel as an engine to transpiling javascript.

Usage

If you want to use this tech, you should to perform 3 steps: Firstly you should to install the tech run the command

    npm install --save-dev enb-bemify-es2015

Then you should to add this tech to the .enb/enb-make.js:

//.enb/enb-make.js
    nodeConfig.addTechs(require('enb-bemify-es2015'), {
        target: '?.js',
        suffixes: ['browser.js','vanilla.js','node.js'],
    })

And finally you should configure your .babelrc file.

License

MIT, see LICENSE for details.