This ruby gem adds support for CoffeeScript files in SproutCore projects.
Install the gem
gem install sproutcore-coffeescript
Add to the top of the Buildfile in the root of your project:
begin gem "sproutcore-coffeescript", "~> 0.1.4" require "sproutcore-coffeescript" rescue LoadError puts "sproutcore-coffeescript not installed, please run:\n\n gem install sproutcore-coffeescript\n\n" exit end
Use .coffee instead of .js. Enjoy.
Having said that, I use this gem in my applications and it works for me. If you find a bug, let me know.