babel-me
v0.1.5
Published
A simple & clean babel grunt boilerplate
Downloads
27
Readme
babel-me
Are you planning to use babel in your next project ? Build a Babel environment in one single line
#Install
npm install -g babel-me
#Usage
babel-me
Create a simple environment for start coding in es6 with babel.
.
|___ lib/index.js <-- base es6 file
|___ dist/ <-- distribution folder
|___ tests/test.js <-- base es6 test based on mocha
|___ .babelrc <-- babel configuration file
Aumatically add scripts to use and build your babel lib
...
"scripts":{
"build" : "./node_modules/babel-cli/bin/babel.js lib -d dist",
"test" : "./node_modules/mocha/bin/mocha tests/* --compilers js:babel-core/register -t 15s",
"prepublish" : "npm run build"
},
Install the minimumm required dependencies
- babel-cli
- babel-core
- babel-preset-es2015
- mocha
Thats all! Simple and with minimum dependencies.
Related
A babel boilerplate for Yeoman https://github.com/babel/generator-babel-boilerplate