Skip to content

Commit

Permalink
Removed a bunch of the IE stuff from cluster (sorry dude, not yet), m…
Browse files Browse the repository at this point in the history
…erged in tivacs stuff.
  • Loading branch information
Fil Maj committed Mar 13, 2010
2 parents 6a56463 + 769556a commit e0b55d5
Show file tree
Hide file tree
Showing 13 changed files with 6,738 additions and 1,138 deletions.
39 changes: 25 additions & 14 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,23 @@ task :default => :spec

desc 'use JSLint to validate source code...'
task :check do
puts 'checking js for lint...'
rhino_jar = File.join(LIBPATH, 'util', 'js.jar')
jslint_file = File.join(LIBPATH, 'util', 'jslint.js')
failed_files = []

FileList.new(File.join(LIBPATH,'lib','*')).each do |xui|
sh "java -classpath #{rhino_jar} org.mozilla.javascript.tools.shell.Main #{jslint_file} #{xui}"
end
rhino_jar = File.join(LIBPATH, "util", "js.jar")
jslint_file = File.join(LIBPATH, "util", "jslint.js")

Dir[File.join(LIBPATH, 'src', '**/*.js')].each do |xui|
cmd = "java -cp #{rhino_jar} org.mozilla.javascript.tools.shell.Main #{jslint_file} #{xui}"
results = %x{#{cmd}}
unless results =~ /^jslint: No problems found in/
puts "#{xui}:"
puts results
failed_files << xui
end
end
if failed_files.size > 0
exit 1
end
end


Expand Down Expand Up @@ -77,6 +87,7 @@ two pass system
FileUtils.mkdir_p("#{ LIBPATH }/lib/")

build_profiles.each do |xui|
puts "creating #{ LIBPATH }/lib/#{ xui.keys.first }..."
File.open("#{ LIBPATH }/lib/#{ xui.keys.first }", 'w') do |f|
f.puts interpolate(xui.values.first)
end
Expand All @@ -93,14 +104,14 @@ two pass system

def versionize
"/*
* XUI JavaScript Library v#{ version }
* http://xuijs.com
*
* Copyright (c) 2009 Brian LeRoux, Rob Ellis, Brock Whitten
* Licensed under the MIT license.
*
* Date: #{ DateTime.now }
*/"
* XUI JavaScript Library v#{ version }
* http://xuijs.com
*
* Copyright (c) 2009 Brian LeRoux, Rob Ellis, Brock Whitten
* Licensed under the MIT license.
*
* Date: #{ DateTime.now }
*/\n"
end

def compile(libs)
Expand Down
Loading

0 comments on commit e0b55d5

Please sign in to comment.