Skip to content
This repository has been archived by the owner. It is now read-only.
main
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

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

Topics

Resources

License

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •