Permalink
Browse files

Use guard for autocompile

  • Loading branch information...
1 parent b4f9ac5 commit c731e54b9bbe7b573babd3cfaf18b4fa53e498d2 @rentalcustard rentalcustard committed Jun 4, 2012
Showing with 8 additions and 3 deletions.
  1. +6 −0 Guardfile
  2. +1 −3 Rakefile
  3. +1 −0 poltergeist.gemspec
View
@@ -0,0 +1,6 @@
+# A sample Guardfile
+# More info at https://github.com/guard/guard#readme
+
+guard 'coffeescript', :input => 'lib/capybara/poltergeist/client',
+ :output => 'lib/capybara/poltergeist/client/compiled',
+ :bare => true
View
@@ -5,9 +5,7 @@ require base + "/lib/capybara/poltergeist/version"
require 'coffee-script'
task :autocompile do
- system "coffee --compile --bare --watch " \
- "--output lib/capybara/poltergeist/client/compiled " \
- "lib/capybara/poltergeist/client/*.coffee"
+ system "guard"
end
task :compile do
View
@@ -25,6 +25,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rake', '~> 0.9.2'
s.add_development_dependency 'image_size', '~> 1.0'
s.add_development_dependency 'coffee-script', '~> 2.2.0'
+ s.add_development_dependency 'guard-coffeescript', '~> 1.0.0'
s.files = Dir.glob("{lib}/**/*") + %w(LICENSE README.md)
s.require_path = 'lib'

0 comments on commit c731e54

Please sign in to comment.