Compile coffeescript before testing
This commit is contained in:
parent
1979354402
commit
b4f9ac5b0b
3
Rakefile
3
Rakefile
|
@ -14,6 +14,7 @@ task :compile do
|
|||
Dir.glob("lib/capybara/poltergeist/client/*.coffee").each do |f|
|
||||
compiled = "lib/capybara/poltergeist/client/compiled/#{f.split("/").last.split(".").first}.js"
|
||||
File.open(compiled, "w") do |out|
|
||||
puts "Compiling #{f}"
|
||||
out << CoffeeScript.compile(File.read(f), :bare => true)
|
||||
end
|
||||
end
|
||||
|
@ -22,7 +23,7 @@ end
|
|||
RSpec::Core::RakeTask.new('test') do
|
||||
end
|
||||
|
||||
task :default => :test
|
||||
task :default => [:compile, :test]
|
||||
|
||||
task :release do
|
||||
puts "Releasing #{Capybara::Poltergeist::VERSION}, y/n?"
|
||||
|
|
Loading…
Reference in New Issue