Socket
Book a DemoInstallSign in
Socket

gulp-ember-rocks-traceur

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-ember-rocks-traceur

A Gulp plugin. Compile ES6 script on the fly using traceur-compiler for ember-rocks

0.0.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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 = require('gulp');
var traceur = require('gulp-ember-rocks-traceur');

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

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 = require('gulp');
var concat = require('gulp-concat');
var sourcemaps = require('gulp-sourcemaps');
var emberRocksTraceur = require('gulp-ember-rocks-traceur');

gulp.task('default', function () {
  return gulp.src('src/*.js')
    .pipe(sourcemaps.init())
    .pipe(emberRocksTraceur())
    .pipe(concat('all.js'))
    .pipe(sourcemaps.write())
    .pipe(gulp.dest('dist'));
});

Keywords

gulpplugin

FAQs

Package last updated on 22 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.