Skip to content

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

Notifications You must be signed in to change notification settings

ppold/gulp-traceur

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 () {
	return gulp.src('src/app.js')
		.pipe(traceur({sourceMap: true}))
		.pipe(gulp.dest('dist'));
});

API

traceur(options)

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

options

sourceMap

Type: boolean
Default: false

modules

Type: string
Default: commonjs
Values: see traceur modules option

By default, gulp-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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%