From ffb968b08b68351e9e2e19fd7992d55ddcdedb84 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 18 Oct 2010 11:15:44 -0700 Subject: Remove externs target from the Rakefile We are not going to do advanced optimization in the forseeable future, so until then we don't need we should remove them from Rakefile. --- Rakefile | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/Rakefile b/Rakefile index bea458b2..8d3e50c8 100644 --- a/Rakefile +++ b/Rakefile @@ -51,25 +51,6 @@ task :clean do end -desc 'Generate Externs' -task :compile_externs do - File.open('externs.js', 'w') do |out| - out.write("function jQuery(){};\n") - - File.open('lib/jquery/jquery-1.4.2.js', 'r') do |file| - while (line = file.gets) - if line =~ /^\s*(\w+)\s*:\s*function.*$/ - out.write("jQuery.#{$1}=function(){};\n") - end - end - end - - out.write("jQuery.scope=function(){};\n") - out.write("jQuery.controller=function(){};\n") - end -end - - desc 'Compile Scenario' task :compile_scenario do @@ -150,7 +131,7 @@ end desc 'Compile JavaScript' -task :compile => [:compile_externs, :compile_scenario, :generate_ie_compat] do +task :compile => [:compile_scenario, :generate_ie_compat] do deps = [ 'src/angular.prefix', @@ -167,7 +148,6 @@ task :compile => [:compile_externs, :compile_scenario, :generate_ie_compat] do %x(java -jar lib/compiler-closure/compiler.jar \ --compilation_level SIMPLE_OPTIMIZATIONS \ --js angular-debug.js \ - --externs externs.js \ --create_source_map ./angular-minified.map \ --js_output_file angular-minified.js) end -- cgit v1.2.3