Skip to content

Latest commit

 

History

History
 
 

vanilla-es6

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Vanilla ES6 (ES2015) • TodoMVC

A port of the Vanilla JS Example, but translated into ES6, also known as ES2015.

Learning ES6

Installation

To get started with this example, navigate into the example folder and install the NPM modules.

cd todomvc/examples/vanilla-es6
npm install

Compiling ES6 to ES5

After NPM modules have been installed, use the pre-defined Babel script to convert the src files. Browserify is also used so that module.exports and require() can be run in your browser.

npm run compile

Support

Let us know if you discover anything worth sharing.

Implementation

Uses Google Closure Compiler to compile ES6 code to ES5, which is then readable by all browsers.

Credit

Created by Luke Edwards Refactored by Aaron Muir Hamilton