Skip to content

Instantly share code, notes, and snippets.

@wtnabe
Created November 12, 2011 03:28
Show Gist options
  • Save wtnabe/1359990 to your computer and use it in GitHub Desktop.
Save wtnabe/1359990 to your computer and use it in GitHub Desktop.
rake tasks for jasmine with guard-livereload
# -*- mode: ruby -*-
namespace :guard do
desc 'automated rake jasmine'
task :jasmine do
sh 'bundle exec guard &'
Rake::Task[:jasmine].invoke
end
desc 'stop guard'
task :exit do
sh 'ps a | awk "/bin\/guard/ {print \$1}" | xargs kill -KILL'
end
end
# -*- mode: ruby -*-
guard :livereload do
watch( /\.js$/ ) { '/' }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment