-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
78 lines (61 loc) · 1.63 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
require 'rubygems'
# task :gemspec => :jasmine
# task :gemspec => :qunit
gem 'hoe', '>= 2.5'
require 'hoe'
Hoe.plugin :debugging, :doofus, :git
Hoe.plugins.delete :rubyforge
Hoe.spec "jazz" do
developer 'Steven Parkes', 'smparkes@smparkes.net'
self.readme_file = 'README.rdoc'
self.extra_rdoc_files = Dir['*.rdoc']
self.history_file = "CHANGELOG.rdoc"
self.readme_file = "README.rdoc"
self.extra_deps = [
['envjs', '>= 0.1.7'],
['eventmachine', '>= 0.12.11'],
['nokogiri', '>= 1.4.1'],
['haml', '>= 2.2.20']
]
self.extra_dev_deps = [
['ragaskar-jsdoc_helper', '>= 0.2.1']
]
clean_globs << "{example,lib}/**/*.html"
end
task :test do
cmd = "wake --once"
# puts cmd
system cmd
end
# task :test => :check_dependencies
task :default => :test
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION')
version = File.read('VERSION')
else
version = ""
end
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "jazz #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
task :qunit do
rm_rf "lib/jazz/qunit"
mkdir_p "lib/jazz/qunit"
cp_r "vendor/qunit/qunit/.", "lib/jazz/qunit/."
end
task :jasmine do
system "cd vendor/jasmine && rake jasmine:build"
rm_rf "doc/jasmine"
mkdir_p "doc/jasmine"
cp_r "vendor/jasmine/doc/.", "doc/jasmine/."
rm_rf "lib/jazz/jasmine"
mkdir_p "lib/jazz/jasmine"
cp Dir["vendor/jasmine/lib/jasmine-*.js"][0], "lib/jazz/jasmine/jasmine.js"
cp Dir["vendor/jasmine/lib/*.js"], "lib/jazz/jasmine"
end
# Local Variables:
# mode:ruby
# End: