Skip to content

Instantly share code, notes, and snippets.

@benoist
Last active November 8, 2015 11:22
Show Gist options
  • Save benoist/43ad5df13c6b2aadb248 to your computer and use it in GitHub Desktop.
Save benoist/43ad5df13c6b2aadb248 to your computer and use it in GitHub Desktop.
Crystal guard file
# gem install guard
# gem install guard-process
guard 'process', :name => 'Spec', :command => 'crystal spec' do
watch(/spec\/(.*).cr$/)
watch(/src\/(.*).cr$/)
end
guard 'process', :name => 'Build', :command => 'crystal build app.cr' do
watch(/src\/(.*).cr$/)
end
guard 'process', :name => 'Run', :command => './app' do
watch('app')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment