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
- 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