Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (13 sloc) 355 Bytes
guard :shell do
watch /.*/ do |m|
path = m[0]
asset_type = if %r{^client/(javascripts|templates)/.+$}.match path
"javascripts"
elsif %r{^client/stylesheets/.+$}.match path
"stylesheets"
elsif %r{^spec/javascripts/.+$}.match path
"specs"
end
`rake assets:compile_#{asset_type}` unless asset_type.nil?
end
end