gulp-traceur

Traceur is a JavaScript.next to JavaScript-of-today compiler

npm install gulp-traceur
20 downloads in the last day
137 downloads in the last week
478 downloads in the last month

gulp-traceur Build Status

Traceur is a JavaScript.next to JavaScript-of-today compiler

Issues with the output should be reported on the Traceur issue tracker.

Install

$ npm install --save-dev gulp-traceur

Usage

var gulp = require('gulp');
var traceur = require('gulp-traceur');

gulp.task('default', function () {
    gulp.src('src/app.js')
        .pipe(traceur({sourceMaps: true}))
        .pipe(gulp.dest('dist'));
});

API

traceur(options)

Options are passed through to Traceur, except for options.filename which is set for you.

options

sourceMaps

Type: boolean
Default: false

modules

Type: string
Default: commonjs
Values: commonjs, amd

By default, Traceur treats all files as modules. This allows use of the export, module and import syntax. In this way the transformer can be used to compile ES6 for AMD or Node.js environments.

traceur.RUNTIME_PATH

Absolute path to the Traceur runtime.js file.

License

MIT © Sindre Sorhus

npm loves you