Created
November 12, 2011 03:28
-
-
Save wtnabe/1359990 to your computer and use it in GitHub Desktop.
rake tasks for jasmine with guard-livereload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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