Skip to content
Browse files

Guard down to 1.4, improved guardfile

  • Loading branch information...
1 parent 5efdce1 commit 2eafad57f904f66e7809cdbe615d225003df7354 @zmcartor committed
Showing with 15 additions and 9 deletions.
  1. +7 −4 Gemfile
  2. +8 −5 Guardfile
View
11 Gemfile
@@ -4,13 +4,16 @@ gem 'sinatra'
gem 'sinatra-contrib'
gem 'koala'
gem 'rake'
-gem 'guard'
-gem 'guard-jasmine'
-gem 'guard-coffeescript'
-gem 'rb-fsevent'
gem 'growl'
gem 'paperclip', '~> 3.4.0'
+group :development do
+ gem 'guard', '~> 1.4.0'
+ gem 'guard-jasmine'
+ gem 'guard-coffeescript'
+ gem 'rb-fsevent'
+end
+
group :assets do
gem 'sprockets'
gem 'ejs'
View
13 Guardfile
@@ -1,8 +1,11 @@
-# A sample Guardfile
-# More info at https://github.com/guard/guard#readme
-guard 'coffeescript', :input => 'public/javascript'
-guard 'coffeescript', :input => 'spec/coffeescripts' , :output => 'spec/javascripts'
+guard 'coffeescript', :input => 'public/javascript' do
+ watch(%r{^public/javascript/(.+\.coffee)$})
+end
+
+guard 'coffeescript', :input => 'spec/coffeescripts' , :output => 'spec/javascripts' do
+ watch(%r{^spec/coffeescripts/(.+\.coffee)$})
+end
guard 'jasmine', :jasmine_url => 'http://localhost:8888/', :phantomjs_bin => '/Users/zm/.phantomjs/1.6.0/darwin/bin/phantomjs', :specdoc=> :always, :console => :always do
- watch(%r{spec/javascripts/(.+)\.coffee$})
+ watch(%r{spec/javascripts/(.+\.js)$})
end

0 comments on commit 2eafad5

Please sign in to comment.
Something went wrong with that request. Please try again.