traceur-rails

gem install traceur-rails

Here on rubygems.org

Requirements

Requires node to be installed.

Usage

Despite being named traceur-rails this gem can be used with any project that uses sprockets. Use .tc as the extension for any file that would normally use a .js extension and the file will be compiled with traceur.

traceur modules

Tracuer offers a modules configuration option. Generally this will be set in an initializer. This allows you to specify how modules should be compiled. The options are available in the traceur-compiler wiki

Traceur::Config.compile_to :amd

Rails Asset Pipeline

Traceur to compile client side or the Traceur runtime can be loaded through the asset pipeline in application.js

//= require traceur
//= require traceur-runtime

Author

twitter/_aaronackerman_
Aaron Ackerman