diff options
author | Jonas Pfenniger <jonas@pfenniger.name> | 2010-12-30 01:38:28 -0600 |
---|---|---|
committer | Colin Snover <github.com@zetafleet.com> | 2010-12-30 01:38:28 -0600 |
commit | c1625f6b79b2693ea85f2c16349f708ff203773b (patch) | |
tree | e1700697f36687956e9b6d858871b344490a532e /Rakefile | |
parent | 4eeae8b0bc789ad525e98568cffb37b04b27ae84 (diff) | |
download | jquery-c1625f6b79b2693ea85f2c16349f708ff203773b.tar.gz jquery-c1625f6b79b2693ea85f2c16349f708ff203773b.zip |
Update Rakefile to remove module wrappers (feature parity with make and ant). Update Makefile to avoid rebuilding jquery.js when it is not necessary to do so.
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 29 |
1 files changed, 27 insertions, 2 deletions
@@ -9,7 +9,28 @@ test_dir = File.join( prefix, 'test' ) # setting DIST_DIR before calling rake dist_dir = ENV['DIST_DIR'] || File.join( prefix, 'dist' ) -base_files = %w{intro core support data queue attributes event selector traversing manipulation css ajax xhr transports/jsonp transports/script transports/xhr effects offset dimensions outro}.map { |js| File.join( src_dir, "#{js}.js" ) } +base_files = %w{ + intro + core + support + data + queue + attributes + event + selector + traversing + manipulation + css + ajax + xhr + transports/jsonp + transports/script + transports/xhr + effects + offset + dimensions + outro +}.map { |js| File.join( src_dir, "#{js}.js" ) } # Sizzle, QUnit and jQuery files/dirs sizzle_dir = File.join( src_dir, "sizzle" ) @@ -89,7 +110,11 @@ file jq => [dist_dir, base_files].flatten do puts "Building jquery.js..." File.open(jq, 'w') do |f| - f.write cat(base_files).gsub(/@DATE/, date).gsub(/@VERSION/, version) + f.write cat(base_files). + gsub(/@DATE/, date). + gsub(/@VERSION/, version). + gsub(/.function..jQuery...\{/, ''). + gsub(/\}...jQuery..;/, '') end end |