babel
{
"name": "es6-6to5-browserify-boilerplate",
"version": "0.0.0",
"description": "A repo to play with ES6++",
"homepage": "https://github.com/thoughtram/es6-6to5-browserify-boilerplate",
"repository": {
"type": "git",
"url": "git://github.com/thoughtram/es6-6to5-browserify-boilerplate.git"
},
"bugs": {
"url": "https://github.com/thoughtram/es6-6to5-browserify-boilerplate/issues"
},
"devDependencies": {
"babel-preset-es2015": "^6.1.18",
"babelify": "~5.0.3",
"browser-sync": "^1.7.1",
"browserify": "^6.3.3",
"gulp": "~3.8.10",
"gulp-babel": "^6.1.1",
"gulp-rename": "^1.2.0",
"lodash": "^2.4.1",
"rimraf": "~2.2.8",
"vinyl-source-stream": "^1.0.0",
"watchify": "^2.1.1"
},
"author": "Christoph Burgdorf <christoph@thoughtram.io>",
"license": "MIT"
}
var gulp = require("gulp");
var browserify = require("browserify");
var source = require("vinyl-source-stream");
gulp.task("es6", function() {
return browserify("./src/app.js")
.transform("babelify")
.bundle()
.pipe(source("bundle.js"))
.pipe(gulp.dest("dist"));
});