aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2009-11-29 16:21:54 -0500
committerjeresig <jeresig@gmail.com>2009-11-29 16:21:54 -0500
commite00be67f32f0f82421cefd9c7a715360f9db1f8b (patch)
tree6f3bdd985a4a6f349cef0723087964c8c1c453da
parent1879e8cbeef6984495ee84f482900defda0dc3f4 (diff)
downloadjquery-e00be67f32f0f82421cefd9c7a715360f9db1f8b.tar.gz
jquery-e00be67f32f0f82421cefd9c7a715360f9db1f8b.zip
Adding a Rakefile to build jQuery core, for those that need it.
-rw-r--r--Rakefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 000000000..e1c15bb3e
--- /dev/null
+++ b/Rakefile
@@ -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