This repository has been archived by the owner. It is now read-only.
[DEPRECATED] Transform next-generation JavaScript to today's JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.jshintrc
.travis.yml
index.js
license
package.json
readme.md
test.js

readme.md

Deprecated

Deprecated because the esnext project is no longer maintained.


gulp-esnext Build Status

Transform next-generation JavaScript to today's JavaScript with esnext

Issues with the output should be reported on the esnext issue tracker.

Install

$ npm install --save-dev gulp-esnext

Usage

var gulp = require('gulp');
var esnext = require('gulp-esnext');

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

API

esnext(options)

options

Options are passed through to esnext.

Source Maps

Use gulp-sourcemaps like this:

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

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

License

MIT © Sindre Sorhus