A starting point for using ES6 with Gulp, Browserify and Babel.
With the latest ECMA Script standard looking set for release in June I’ve been looking at how we can take advantage of the new features at work. As a proof of concept for using a transpiler I wrote a simple boilerplate project, which is available on GitHub.
The boilerplate demonstrates a simple example of the new class syntax, with a
Developer class that extends
Person. There is also an example of the useful string interpolation feature in the
I’m now using Babel (formerly 6to5), or more specifically its Browserify transform Babelify. Using Babel in conjunction with Browserify gives you the freedom to use the module syntax outlined in the new specification, which will be familiar to those already importing and exporting code.