Skip to content
Newer
Older
100644 34 lines (25 sloc) 728 Bytes
30431a3 @ragaskar Gem-ize jasmine
ragaskar authored
1 require "bundler"
2 Bundler::GemHelper.install_tasks
3 require "term/ansicolor"
4 require "json"
5 require "tilt"
12f5678 Move building single-file JS to use a JSON file with initial priority…
Davis W. Frank authored
6
f83cb7f Runner.html is now generated (ensures all source & specs get tested);…
Davis W. Frank authored
7 Dir["#{File.dirname(__FILE__)}/tasks/**/*.rb"].each do |file|
8 require file
11f356e @ragaskar Integrate JasmineHelper
ragaskar authored
9 end
10
e591719 breaking up distribution tasks; moving version to a template to have …
Davis W. Frank authored
11 task :default => :spec
12
13 task :require_pages_submodule do
3775919 remove old, commented-out tasks
Davis W. Frank authored
14 raise "Submodule for Github Pages isn't present. Run git submodule update --init" unless pages_submodule_present
e591719 breaking up distribution tasks; moving version to a template to have …
Davis W. Frank authored
15 end
16
f83cb7f Runner.html is now generated (ensures all source & specs get tested);…
Davis W. Frank authored
17 task :require_node do
18 raise "\nNode.js is required to develop code for Jasmine. Please visit http://nodejs.org to install.\n\n" unless node_installed?
1057596 New example project.
Lee Byrd & Christian Williams authored
19 end
20
3775919 remove old, commented-out tasks
Davis W. Frank authored
21 def pages_submodule_present
22 File.exist?('pages/download.html')
23 end
24
e591719 breaking up distribution tasks; moving version to a template to have …
Davis W. Frank authored
25 def node_installed?
26 `which node` =~ /node/
27 end
28
0b97951 Better coloring of output of Rake tasks; Turn off colored output in R…
Davis W. Frank authored
29 class String
30 include Term::ANSIColor
31 end
32
33 Term::ANSIColor.coloring = STDOUT.isatty
Something went wrong with that request. Please try again.