traceurify

0.0.6 • Public • Published

Not maintained. Use es6ify

es6ify is now using traceur as a foundation, so it supports all ES6 features supported by traceur.

traceurify

Information

Packagetraceurify
Description Traceur transform for Browserify
Node Version >= 0.10

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

Package Sidebar

Install

npm i traceurify

Weekly Downloads

0

Version

0.0.6

License

MIT

Last publish

Collaborators

  • guzart