Grunt task that uses google traceur compiler to build ECMAScript 6 (harmony) projects, optionally merging and generating source maps.
This is a fork of grunt-traceur-build that is improved to properly support using Traceur inside of Node.JS A few optimizations have been made to make it work properly in both node and browser.
npm install grunt-node-traceur --save
There may be need to load the Traceur runtime to use the generated code, so you will need this module in production
In your project's Gruntfile, add a section named
traceur to the data object passed into
Almost all options are passed to the traceur compiler directly, see the section below for the default values.
It will by default generate source maps for debugging(as far as I know only google chrome and node-inspector support this feature. In node.js, stack traces will display the original filenames/location if you install the node-source-map-support package