Simple gem to translate ECMAScript 6 scripts to ES5 ones using 6to5
TODO: Use cocaine to run 6to5
Add this line to your application's Gemfile:
gem 'es6to5-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install es6to5-rails
Just require es6to5
in your application.js
:
//= require es6to5
And name your scripts like: my-script.js.es6
- Fork it ( https://github.com/holywarez/es6to5-rails/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request