gulp-esperanto
v0.2.0
Published
Gulp plugin to transpile ES6 module syntax with esperanto
Downloads
27
Maintainers
Readme
gulp-esperanto
Gulp plugin to transpile ES6 module syntax with esperanto
Issues with output should be reported to the esperanto issue tracker.
Install
$ npm install --save-dev gulp-esperanto
Usage
var gulp = require('gulp');
var esperanto = require('gulp-esperanto');
gulp.task('default', function () {
return gulp.src('src/app.js')
.pipe(esperanto())
.pipe(gulp.dest('dist'));
});
Usage
esperanto(config)
config.type
Can be one of 'amd' or 'cjs' (CommonJS) to set the desired format of the output
config.defaultOnly
config.defaultOnly is passed straight through to esperanto.
License
MIT © Sean Dunn