forked from yokolet/clementine
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
26 lines (19 loc) · 745 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require 'rake/testtask'
task :default => :bootstrap
task :bootstrap do
# clojurescript home
CLOJURESCRIPT_HOME = File.join(File.dirname(__FILE__), "ext/clojurescript-r2280")
$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')
# move libraries to clojurescript lib
FileUtils.mkdir File.join(CLOJURESCRIPT_HOME, 'lib')
FileUtils.mv Dir.glob('lib/*.jar'), File.join(CLOJURESCRIPT_HOME, 'lib')
end
Rake::TestTask.new do |t|
t.pattern = "test/*_test.rb"
end