forked from joosy/joosy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGuardfile
30 lines (24 loc) · 1.26 KB
/
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
25
26
27
28
29
30
guard 'coffeescript', :output => 'tmp/spec/javascripts' 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$})
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' do
watch %r{^app/assets/javascripts/joosy/core.+\.js}
watch 'app/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/preloaders/caching.js.coffee' do
watch 'app/assets/javascripts/joosy/preloaders/caching.js.coffee'
end
guard 'sprockets', :destination => 'tmp/javascripts',
:asset_paths => ['app/assets/javascripts', 'vendor/assets/javascripts', jquery_path],
:root_file => 'app/assets/javascripts/joosy/preloaders/inline.js.coffee' do
watch 'app/assets/javascripts/joosy/preloaders/inline.js.coffee'
end
puts 'HI! Hit <Enter> to generate all stuff.'