Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Commit

Permalink
Remove closure-compiler.
Browse files Browse the repository at this point in the history
In basic optimization closure-compiler doesn't do a better job than YUI-compressor. In advanced setting, the application breaks.
  • Loading branch information
chiku committed Jan 14, 2012
1 parent 3d7ff89 commit a29a926
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 530 deletions.
36 changes: 0 additions & 36 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,6 @@ task :minify do
system "juicer merge --force public/stylesheets/all.css"
end

task :minify2 do
current_path = File.expand_path(File.dirname(__FILE__))

library_js_files = File.join(current_path, "public", "javascripts", "lib", "**", "*.js")
application_js_dirsets = [
File.join(current_path, "public", "javascripts", "boot", "initialize.js"),
File.join(current_path, "public", "javascripts", "config", "**", "*.js"),
File.join(current_path, "public", "javascripts", "app", "models", "**", "*.js"),
File.join(current_path, "public", "javascripts", "app", "collections", "**", "*.js"),
File.join(current_path, "public", "javascripts", "app", "router.js"),
File.join(current_path, "public", "javascripts", "app", "views","**", "*.js"),
File.join(current_path, "public", "javascripts", "boot", "run.js"),
]

externs = ""
Dir[library_js_files].each do |file|
externs << " --externs #{file}"
end

files = ""
application_js_dirsets.each do |dirset|
Dir[dirset].each do |file|
files << " --js #{file}"
end
end

statement = <<-EOS
java -jar lib/closure-compiler/compiler.jar \
#{files} #{externs} \
--warning_level QUIET \
--js_output_file=public/javascripts/all.min.js
EOS
puts "Executing\n#{statement}...\n"
`#{statement}`
end

namespace :switch_to do
def switch_to env
FileUtils.rm_f "public/index.html"
Expand Down
202 changes: 0 additions & 202 deletions lib/closure-compiler/COPYING

This file was deleted.

Loading

0 comments on commit a29a926

Please sign in to comment.