Turns out I missed most of ES5, too: https://github.com/es-shims/es5-shim
Browser-based repl: http://babeljs.io/repl/
https://github.com/lukehoban/es6features https://babeljs.io/docs/learn-es6/ https://robots.thoughtbot.com/replace-coffeescript-with-es6 https://hacks.mozilla.org/category/es6-in-depth/
npm install --global babel
# watch single file
babel input.js —watch —out-file output.js
# watch all files in directory
babel input —watch —out-dir output
var gulp = require("gulp");
var babelify = require('babelify');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
gulp.task('modules', function() {
browserify({ entries: './es6/scratch.js', debug: true })
.transform(babelify)
.bundle()
.pipe(source('output.js'))
.pipe(gulp.dest('./dist'));
});
gulp.task('default', function () {
gulp.watch('./es6/scratch.js', ['modules']);
});