Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

merging in zmack's enhanced Rakefile

  • Loading branch information...
commit 9994d2bab814cee33d4832d4f9f9324212edd71b 1 parent a98ecc9
@jashkenas jashkenas authored
Showing with 6 additions and 12 deletions.
  1. +6 −12 Rakefile
View
18 Rakefile
@@ -7,7 +7,7 @@ task :build do
begin
require 'closure-compiler'
rescue LoadError
- puts %{closure-compiler not found.\nInstall it by running 'gem install closure-compiler'}
+ puts "closure-compiler not found.\nInstall it by running 'gem install closure-compiler"
exit
end
source = File.read 'backbone.js'
@@ -19,12 +19,8 @@ end
desc "build the docco documentation"
task :doc do
- check('docco', 'docco', 'https://github.com/jashkenas/docco')
-
- system [
- 'docco backbone.js',
- 'docco examples/todos/todos.js examples/backbone-localstorage.js'
- ].join(' && ')
+ check 'docco', 'docco', 'https://github.com/jashkenas/docco'
+ system 'docco backbone.js && docco examples/todos/todos.js examples/backbone-localstorage.js'
end
desc "run JavaScriptLint on the source"
@@ -34,15 +30,13 @@ end
desc "test the CoffeeScript integration"
task :test do
- check('coffee', 'CoffeeScript', 'https://github.com/jashkenas/coffee-script.git')
-
+ check 'coffee', 'CoffeeScript', 'https://github.com/jashkenas/coffee-script.git'
system "coffee test/*.coffee"
end
-
+# Check for the existence of an executable.
def check(exec, name, url)
return unless `which #{exec}`.empty?
-
- puts "#{name} not found.\nGet it from #{url}"
+ puts "#{name} not found.\nInstall it from #{url}"
exit
end
Please sign in to comment.
Something went wrong with that request. Please try again.