forked from joosy/joosy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGuardfile
24 lines (19 loc) · 916 Bytes
/
Guardfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 <Enter> to generate all stuff.'