Skip to content

nikhilbaradwaj/es6examples

Repository files navigation

es6examples

Build Status Join the chat at https://gitter.im/nikhilbaradwaj/es6examples

ES6 Logo

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"

Overview

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

Usage

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.

Tests

$ npm install
$ gulp test

Credits

Nikhil Baradwaj

License

The MIT License

Copyright (c) 2015 Nikhil Baradwaj

About

Code examples to explore the latest and greatest in ecmascript 6 and beyond.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •