Es6to5::Rails

Simple gem to translate ECMAScript 6 scripts to ES5 ones using 6to5

TODO: Use cocaine to run 6to5

Installation

Add this line to your application's Gemfile:

gem 'es6to5-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install es6to5-rails

Usage

Just require es6to5 in your application.js:

//= require es6to5

And name your scripts like: my-script.js.es6

Contributing

  1. Fork it ( https://github.com/holywarez/es6to5-rails/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request