2009-08-25 00:41:51 +00:00
|
|
|
task :default => :noop
|
|
|
|
|
|
|
|
task :noop do
|
2009-09-01 16:20:25 +00:00
|
|
|
puts "** NO-OP task to support 'git submodule' rake comaptibility in jasmine"
|
|
|
|
end
|
|
|
|
|
|
|
|
namespace :test do
|
|
|
|
task :unit => :noop
|
|
|
|
task :integration => :noop
|
2009-08-25 00:41:51 +00:00
|
|
|
end
|
|
|
|
|
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
|
|
|
|
|
|
|
# these files must be better
|
2009-07-09 01:18:17 +00:00
|
|
|
sources = ["src/base.js", "src/util.js", "src/Env.js", "src/ActionCollection.js", "src/Reporter.js"]
|
2009-06-19 18:47:33 +00:00
|
|
|
|
|
|
|
sources += Dir.glob('src/*.js').reject{|f| sources.include?(f)}
|
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-06-19 18:47:33 +00:00
|
|
|
end
|
|
|
|
|