A boilerplate to write JavaScript code in ES6 and run in the browser now using RequireJS.
- lints code using ESLint with babel-eslint parser
- allows to write unit tests using Mocha, Chai and Sinon.JS and run them with Karma runner
- code coverage reports using isparta
- Babel transforms ES6 code to ES5 with AMD support using RequireJS
- Node 0.12.x or io.js 1.x
- Windows only: remember to set Git and Node path in environment variable %PATH%.
- npm install: run
npm install
- grunt-cli: run
npm install -g grunt-cli
if needed. - bower: run
bower install
if needed
grunt dependencies
- helps to update package.json filegrunt spec
- lints the code and runs unit testsgrunt build
- lints the code, runs unit tests, createsdist/
folder with transformed ES5 code, copies index.htmlgrunt
- runsgrunt build
- Overview of ECMAScript 6 features
- An aggregation of tooling for ES6
- ECMAScript 6 new features overview & comparison
- ECMAScript 6 compatibility table
- Using JavaScript ES6 in practice
- Variables and scoping in ECMAScript 6
- Classes in ECMAScript 6
- ES6 generators in depth
- Iterables and iterators in ECMAScript 6
- ECMAScript 6 modules: the final syntax
- Practical Workflows for ES6 Modules - article by Guy Bedford
- Author In ES6, Transpile To ES5 As A Build-step: A Workflow For Grunt
- Using Grunt & the ES6 Module Transpiler
- ES6 modules today with Babel (6TO5)
- Lint Like It’s 2015 (babel-eslint)