Guardfile in joosy-0.1.0.alpha vs Guardfile in joosy-1.0.0.RC1
- old
+ new
@@ -1,24 +1,24 @@
-guard 'coffeescript',
- :output => 'tmp/spec/javascripts' do
- watch(%r{^spec/javascripts/(.+)[sS]pec\.js\.coffee$})
+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' do
- watch(%r{^spec/javascripts/helpers/(.+)\.js\.coffee$})
+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 => ['vendor/assets/javascripts', jquery_path] do
- watch('vendor/assets/javascripts/joosy.js.coffee')
-end
-guard 'shell' do
- watch(%r{^vendor/assets/javascripts/(?!joosy\.js).+\.js}) do
- `touch vendor/assets/javascripts/joosy.js.coffee`
- end
+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 <Enter> to generate all stuff.'
\ No newline at end of file
+puts 'HI! Hit <Enter> to generate all stuff.'