Permalink
1 comment
on commit
sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Adding a Rakefile to build jQuery core, for those that need it.
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Basic Rakefile for building jQuery | ||
files = [ "intro", "core", "data", "event", "support", "selector", "traversing", "attributes", "manipulation", "css", "ajax", "fx", "offset", "dimensions", "outro" ] | ||
|
||
date = `git log -1 | grep Date: | sed 's/[^:]*: *//'`.gsub(/\n/, "") | ||
version = `cat version.txt`.gsub(/\n/, "") | ||
|
||
task :default => :jquery | ||
|
||
task :jquery => [:selector] do | ||
sh "mkdir -p dist" | ||
|
||
sh "cat " + files.map {|file| "src/" + file + ".js"}.join(" ") + | ||
" | sed 's/Date:./&" + date + "/' | " + | ||
" sed s/@VERSION/" + version + "/ > dist/jquery2.js" | ||
end | ||
|
||
task :selector do | ||
sh "sed '/EXPOSE/r src/sizzle-jquery.js' src/sizzle/sizzle.js > src/selector.js" | ||
end |
e00be67
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great. I was wondering why it wasn't there before