Skip to content
This repository
Browse code

remove old, commented-out tasks

  • Loading branch information...
commit 3775919c926a3daa2a9a3de588e11ec5eef8805d 1 parent a692ff8
Davis W. Frank authored

Showing 1 changed file with 6 additions and 86 deletions. Show diff stats Hide diff stats

  1. +6 86 Rakefile
92 Rakefile
... ... @@ -1,6 +1,6 @@
1 1 require 'json'
2 2 require 'tilt'
3   -require 'term/ansicolor'
  3 +require 'term/ansi-color'
4 4
5 5 Dir["#{File.dirname(__FILE__)}/tasks/**/*.rb"].each do |file|
6 6 require file
@@ -9,13 +9,17 @@ end
9 9 task :default => :spec
10 10
11 11 task :require_pages_submodule do
12   - raise "Submodule for Github Pages isn't present. Run git submodule update --init" unless File.exist?('pages/download.html')
  12 + raise "Submodule for Github Pages isn't present. Run git submodule update --init" unless pages_submodule_present
13 13 end
14 14
15 15 task :require_node do
16 16 raise "\nNode.js is required to develop code for Jasmine. Please visit http://nodejs.org to install.\n\n" unless node_installed?
17 17 end
18 18
  19 +def pages_submodule_present
  20 + File.exist?('pages/download.html')
  21 +end
  22 +
19 23 def node_installed?
20 24 `which node` =~ /node/
21 25 end
@@ -26,87 +30,3 @@ end
26 30
27 31 Term::ANSIColor.coloring = STDOUT.isatty
28 32
29   -#namespace :jasmine do
30   -#
31   -# desc 'Prepares for distribution'
32   -# task :dist => ['jasmine:build',
33   -# 'jasmine:doc',
34   -# 'jasmine:build_pages',
35   -# 'jasmine:build_example_project',
36   -# 'jasmine:fill_index_downloads']
37   -#
38   -# end
39   -#
40   -# downloads_file = 'pages/download.html'
41   -# task :need_pages_submodule do
42   -# unless File.exist?(downloads_file)
43   -# raise "Jasmine pages submodule isn't present. Run git submodule update --init"
44   -# end
45   -# end
46   -#
47   -# desc "Build the Github pages HTML"
48   -# task :build_pages => :need_pages_submodule do
49   -# Dir.chdir("pages") do
50   -# FileUtils.rm_r('pages_output') if File.exist?('pages_output')
51   -# Dir.chdir('pages_source') do
52   -# system("frank export ../pages_output")
53   -# end
54   -# puts "\nCopying Frank output to the root of the gh-pages branch\n\n"
55   -# system("cp -r pages_output/* .")
56   -# end
57   -# end
58   -#
59   -# desc "Build jasmine documentation"
60   -# task :doc => :need_pages_submodule do
61   -# puts 'Creating Jasmine Documentation'
62   -# require 'rubygems'
63   -# require 'jsdoc_helper'
64   -#
65   -# FileUtils.rm_r "pages/jsdoc", :force => true
66   -#
67   -# JsdocHelper::Rake::Task.new(:lambda_jsdoc) do |t|
68   -# t[:files] = jasmine_sources << jasmine_html_sources
69   -# t[:options] = "-a"
70   -# t[:out] = "pages/jsdoc"
71   -# # JsdocHelper bug: template must be relative to the JsdocHelper gem, ick
72   -# t[:template] = File.join("../".*(100), Dir::getwd, "jsdoc-template")
73   -# end
74   -# Rake::Task[:lambda_jsdoc].invoke
75   -# end
76   -#
77   -# desc "Build example project"
78   -# task :build_example_project => :need_pages_submodule do
79   -# require 'tmpdir'
80   -#
81   -# temp_dir = File.join(Dir.tmpdir, 'jasmine-standalone-project')
82   -# puts "Building Example Project in #{temp_dir}"
83   -# FileUtils.rm_r temp_dir if File.exist?(temp_dir)
84   -# Dir.mkdir(temp_dir)
85   -#
86   -# root = File.expand_path(File.dirname(__FILE__))
87   -# FileUtils.cp_r File.join(root, 'example/.'), File.join(temp_dir)
88   -# substitute_jasmine_version(File.join(temp_dir, "SpecRunner.html"))
89   -#
90   -# lib_dir = File.join(temp_dir, "lib/jasmine-#{jasmine_version}")
91   -# FileUtils.mkdir_p(lib_dir)
92   -# {
93   -# "lib/jasmine.js" => "jasmine.js",
94   -# "lib/jasmine-html.js" => "jasmine-html.js",
95   -# "src/html/jasmine.css" => "jasmine.css",
96   -# "MIT.LICENSE" => "MIT.LICENSE"
97   -# }.each_pair do |src, dest|
98   -# FileUtils.cp(File.join(root, src), File.join(lib_dir, dest))
99   -# end
100   -#
101   -# dist_dir = File.join(root, 'pages/downloads')
102   -# zip_file_name = File.join(dist_dir, "jasmine-standalone-#{jasmine_version}.zip")
103   -# puts "Zipping Example Project and moving to #{zip_file_name}"
104   -# FileUtils.mkdir(dist_dir) unless File.exist?(dist_dir)
105   -# if File.exist?(zip_file_name)
106   -# puts "WARNING!!! #{zip_file_name} already exists!"
107   -# FileUtils.rm(zip_file_name)
108   -# end
109   -# exec "cd #{temp_dir} && zip -r #{zip_file_name} . -x .[a-zA-Z0-9]*"
110   -# end
111   -#
112   -#end

0 comments on commit 3775919

Please sign in to comment.
Something went wrong with that request. Please try again.