No commit activity in last 3 years
No release in over 3 years
Adds support for CoffeeScript to SproutCore
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

SproutCore + CoffeeScript

This ruby gem adds support for CoffeeScript files in SproutCore projects.

Usage

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.

Disclaimer

This gem monkey-patches SproutCore build tools on several places, which is ugly and can break with any future update of SproutCore. Also, I doubt I have covered all places in the build tools where javascript files are handled. It is not unlikely it won't work properly in all situations. You've been warned.

Having said that, I use this gem in my applications and it works for me. If you find a bug, let me know.

Acknowledgment

First version of the code was taken from Brandon Dimcheff's fork of Abbot here, updated to SproutCore 1.5 and packaged as a separate gem.