-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathGuardfile
27 lines (22 loc) · 1.03 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
# Compile stylesheets
guard 'compass', :configuration_file => "config/compass.rb" do
watch(/^assets\/sass\/(.*)\.scss/)
end
guard 'coffeescript', :input => 'assets/coffeescripts', :output => 'javascripts' do
watch(%r{coffeescripts/\*\.coffee})
end
# guard 'process', :name => 'Minify CSS', :command => 'juicer merge stylesheets/application.css --force -c none' do
# watch %r{stylesheets/application\.css}
# end
# guard 'process', :name => 'Combine Javascript from CoffeeScript', :command => 'coffee -cbj javascripts/application.js assets/coffeescripts/' do
# watch %r{assets/coffeescripts/.+\.coffee}
# end
# guard 'process', :name => 'Minify application javascript', :command => 'juicer merge javascripts/application.js --force -s' do
# watch %r{javascripts/application\.js}
# end
# Watch for modifications in application.css and application.js
# and reload the browser if so
guard 'livereload', :apply_js_live => true, :apply_css_live => true do
watch(%r{stylesheets/application\.css})
watch(%r{javascripts/application\.js})
end