Marty McFly: Wait a minute. Wait a minute, Doc. Ah... Are you telling me that you built a time machine... out of a DeLorean?
Dr. Emmett Brown: The way I see it, if you're gonna build a time machine into a car, why not do it with some style?
"Back to the Future"
This repository is a bunch of code examples to explore the latest and greatest in ecmascript 6 and beyond.
The gulp setup here will let you write the future of javascript today. The code is transpiled to ES5 for use in current browsers.
The gulp setup also lets you test the ES6 code using karma and jasmine. In fact, the test cases can also be written in ES6.
The goal is to cover all new features that are introduced in es6 and to check their es5 equivalents using babel and traceur transpilers.
For when you find mistakes in my code, have suggestions or need help - join the chat here
To further explore and add to these examples, you can first clone the repo. Then do the following -
$ npm install
$ gulp
The default task in gulp will compile the code in the 'es6' directory and dump two folders 'es5-babel' and 'es5-traceur' which has the respective transpiled code to es5 by the two popular transpilers.
$ npm install
$ gulp test
Nikhil Baradwaj
Copyright (c) 2015 Nikhil Baradwaj