Skip to content

Instantly share code, notes, and snippets.

@gorillawit
Last active December 18, 2015 08:59
Show Gist options
  • Save gorillawit/5758186 to your computer and use it in GitHub Desktop.
Save gorillawit/5758186 to your computer and use it in GitHub Desktop.
Gaurdfile template
guard 'coffeescript', :input => 'coffee', :output => '../source/views', :source_map => true, :source_root => '../../kaybus-control/coffee'
# source_map should be relative to the destination of the js file
# not quite working without config file
guard 'compass', :input => 'sass', :output => '../source/css' do
watch('(.*)\.scss')
end
guard 'haml' do
watch('index.haml')
end
guard 'livereload' do
watch(%r{(coffee|css|html)$})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment