require 'coffee_script' guard 'coffeescript', :output => 'tmp/spec/javascripts', :all_on_start => true do watch(%r{^spec/javascripts/(.+)[sS]pec\.js\.coffee$}) end guard 'coffeescript', :output => 'tmp/spec/javascripts/helpers', :all_on_start => true do watch(%r{^spec/javascripts/helpers/(.+)\.js\.coffee$}) end jquery_path = File.join(Gem.loaded_specs['jquery-rails'].full_gem_path, 'vendor/assets/javascripts') guard 'sprockets', :destination => 'tmp/javascripts', :asset_paths => ['app/assets/javascripts', 'vendor/assets/javascripts', jquery_path], :root_file => [ 'app/assets/javascripts/joosy.js.coffee', 'app/assets/javascripts/joosy/preloaders/caching.js.coffee', 'app/assets/javascripts/joosy/preloaders/inline.js.coffee' ] do watch %r{^app/assets/javascripts/joosy/core.+\.js} watch 'app/assets/javascripts/joosy.js.coffee' end puts 'HI! Hit to generate all stuff.'