Rakefile in clementine-0.0.1 vs Rakefile in clementine-0.0.2

- old
+ new

@@ -1,22 +1,44 @@ require "bundler/gem_tasks" +require 'rake/testtask' + +task :default => :bootstrap + +task :bootstrap do + # clojurescript home + CLOJURESCRIPT_HOME = File.join(File.dirname(__FILE__), "ext/clojure-clojurescript-bef56a7") + + $stdout.print "Bootrapping ClojureScript" + + # command to download and create jar archives + cmd = "#{CLOJURESCRIPT_HOME}/script/bootstrap" + %x( #{cmd} ) + + # removes unnecessary temporary directory to create google closure jar archives + require 'fileutils' + FileUtils.rm_rf File.join(File.dirname(__FILE__), './closure') +end + +Rake::TestTask.new do |t| + t.pattern = "test/*_test.rb" +end \ No newline at end of file