ES6 Babel Browserify Boilerplate
# Clone the repo... git clone https://github.com/thoughtram/es6-6to5-browserify-boilerplate.git cd es6-6to5-browserify-boilerplate # Then, you need to install all the dependencies... npm install # If you wanna be able to use global commands `karma` and `gulp`... npm install -g gulp
Running in the browser
gulp build gulp serve # If you wanna Gulp to re-build on every change... gulp watch
WTF is ES6?
What are all the pieces involved?
Babel is configured to transpile ES6 modules into CommonJS syntax and we use browserify to bundle the code into one file to deliver it to the browser.
Browserify walks through all files and traces down all
require()s to bundle all files together.
Task runner to make defining and running the tasks simpler.