Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.
/ gulp-esnext Public archive

[DEPRECATED] Transform next-generation JavaScript to today's JavaScript

License

Notifications You must be signed in to change notification settings

sindresorhus/gulp-esnext

Repository files navigation

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