gulp-ember-rocks-traceur
Preprocessor to compile ES6 JavaScript on the fly using traceur-compiler for ember-rocks.
Install
$ npm install --save-dev gulp-ember-rocks-traceur
Usage
var gulp = ;var traceur = ; gulp;
API
traceur(options)
Options are passed through to Traceur, except for options.filename
which is set for you.
options
modules
Type: string
Default: amd
Values: amd, commonjs, instantiate, inline, register
By default, gulp-ember-rocks-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.
Source Maps
Use gulp-sourcemaps like this:
var gulp = ;var concat = ;var sourcemaps = ;var emberRocksTraceur = ; gulp;