Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gulp-esperanto

Attamusc9MIT0.2.0

Gulp plugin to transpile ES6 module syntax with esperanto

gulp, plugin, es6, module, esperanto

readme

gulp-esperanto Build Status

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