Skip to content

Instantly share code, notes, and snippets.

@averyvery
Created November 17, 2011 18:48
Show Gist options
  • Save averyvery/1374058 to your computer and use it in GitHub Desktop.
Save averyvery/1374058 to your computer and use it in GitHub Desktop.
Guardfile for mobile dev
guard 'compass' do
watch /^.+(\.s[ac]ss)/
end
guard 'process', :name => 'minify-screen-js', :command => 'juicer merge js/all.js -o js/all.min.js --force -s' do
watch /^js\/brianregan\/screen.js/
end
guard 'process', :name => 'minify-mobile-js', :command => 'juicer merge js/mobile.js -o js/mobile.min.js --force -s' do
watch /^js\/brianregan\/mobile.js/
end
guard 'process', :name => 'shrink-images', :command => 'ruby resize-mobile-images.rb mobileretina' do
watch /^images\/mobileretina\/.+/
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment