traceurify
v0.0.6
Published
Traceur transform for Browserify
Downloads
2
Maintainers
Readme
Not maintained. Use es6ify
es6ify is now using traceur as a foundation, so it supports all ES6 features supported by traceur.
traceurify
Information
Usage
$ npm install traceurify
$ browserify main.js -t traceurify > bundle.js
Usage with gulp
var gulp = require('gulp');
var browserify = require('browserify');
var traceurify = require('traceurify');
var source = require('vinyl-source-stream');
gulp.task('default', function () {
var bundler = browserify('./app/main.js');
bundler.transform(traceurify({ module: 'commonjs' }));
return bundler
.bundle({ debug: true })
.pipe(source('app.js'))
.pipe(gulp.dest('.tmp'));
});
Options
All options are passed to the traceur.compile
method, for more information on the options look
at the traceur documentation.
Here is a list of some of the options:
- annotations
- arrayComprehension
- arrowFunctions
- asyncFunctions
- blockBinding
- classes
- commentCallback
- computedPropertyNames
- debug
- defaultParameters
- destructuring
- forOf
- freeVariableChecker
- modules
- numericLiterals
- restParameters
- sourceMaps
- spread
- symbols
- templateLiterals
- typeAssertions
- types
- validate