Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-traceur

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-traceur

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

  • 0.13.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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
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.

Source Maps

Use gulp-sourcemaps like this:

var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var traceur = require('gulp-traceur');
var concat = require('gulp-concat');

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

License

MIT © Sindre Sorhus

Keywords

FAQs

Package last updated on 14 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc