2009-06-16 14:13:45 +00:00
|
|
|
desc 'Builds lib/jasmine from source'
|
|
|
|
task :build do
|
2009-06-19 18:47:33 +00:00
|
|
|
|
2009-07-30 05:27:11 +00:00
|
|
|
# these files must be loaded first
|
|
|
|
sources = ["src/base.js", "src/util.js", "src/Env.js", "src/ActionCollection.js", "src/Reporter.js", "src/Block.js"]
|
2009-06-19 18:47:33 +00:00
|
|
|
|
2009-08-01 17:43:03 +00:00
|
|
|
sources += Dir.glob('src/*.js').reject{|f| sources.include?(f)}.sort
|
2009-06-16 14:13:45 +00:00
|
|
|
|
|
|
|
jasmine = File.new('lib/jasmine.js', 'w')
|
|
|
|
sources.each do |source_filename|
|
|
|
|
jasmine.puts(File.read(source_filename))
|
|
|
|
end
|
2009-08-01 17:43:03 +00:00
|
|
|
end
|