github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jquery / jquery

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 1,466
    • 139
  • Source
  • Commits
  • Network (139)
  • Graphs
  • Tree: 3fd62ea
  • Branches (3)
    • master
    • mobile
    • omgrequire
  • Tags (39)
    • 1.4rc1
    • 1.4a2
    • 1.4a1
    • 1.4
    • 1.3rc1
    • 1.3b2
    • 1.3b1
    • 1.3.2
    • 1.3.1rc1
    • 1.3.1
    • 1.3
    • 1.2.6
    • 1.2.5
    • 1.2.4b
    • 1.2.4a
    • 1.2.4
    • 1.2.3b
    • 1.2.3a
    • 1.2.3
    • 1.2.2b2
    • 1.2.2b
    • 1.2.2
    • 1.2.1
    • 1.2
    • 1.1b
    • 1.1a
    • 1.1.4
    • 1.1.3a
    • 1.1.3.1
    • 1.1.3
    • 1.1.2
    • 1.1.1
    • 1.1
    • 1.0a
    • 1.0.4
    • 1.0.3
    • 1.0.2
    • 1.0.1
    • 1.0
  • Comments
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

jQuery JavaScript Library — Read more

or cancel

http://jquery.com/

or cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Switched from using YUI Compressor to Google Compiler. Minified and 
Gzipped filesize reduced to 22,839 bytes from 26,169 bytes (13% decrease 
in filesize). Sizzle copyright was merged into the main header (since it's 
removed automatically). Still passes all unit tests.
jeresig (author)
Fri Dec 18 18:23:26 -0800 2009
commit  3fd62eae9df3159fc238a515bb748140a942313d
tree    f3701994828ca356c2eb4059e1352ca89b72f0df
parent  42f8c3add3e0e4370d4bd6816bf471e07baf34be
M Makefile 5 •••••
M build.xml 21 ••••
A build/google-compiler-20091218.jar 0
D build/yuicompressor-2.4.2.jar 0
M src/intro.js 7 ••••
0
Makefile
...
29
30
31
32
 
33
34
35
...
66
67
68
69
 
 
70
71
72
...
29
30
31
 
32
33
34
35
...
66
67
68
 
69
70
71
72
73
0
@@ -29,7 +29,7 @@ JQ_MIN = ${DIST_DIR}/jquery.min.js
0
 JQ_VER = `cat version.txt`
0
 VER = sed s/@VERSION/${JQ_VER}/
0
 
0
-MINJAR = java -jar ${BUILD_DIR}/yuicompressor-2.4.2.jar
0
+MINJAR = java -jar ${BUILD_DIR}/google-compiler-20091218.jar
0
 
0
 DATE=`git log -1 | grep Date: | sed 's/[^:]*: *//'`
0
 
0
@@ -66,7 +66,8 @@ min: ${JQ_MIN}
0
 ${JQ_MIN}: ${JQ}
0
   @@echo "Building" ${JQ_MIN}
0
 
0
-  @@${MINJAR} ${JQ} > ${JQ_MIN}
0
+  @@head -15 ${JQ} > ${JQ_MIN}
0
+  @@${MINJAR} --js ${JQ} --warning_level QUIET >> ${JQ_MIN}
0
 
0
 clean:
0
   @@echo "Removing Distribution directory:" ${DIST_DIR}
0
build.xml
...
71
72
73
74
75
76
77
 
 
 
 
78
79
 
 
80
 
 
 
 
 
 
 
 
 
 
81
82
83
...
71
72
73
 
 
 
 
74
75
76
77
78
 
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
0
@@ -71,13 +71,24 @@
0
         <include name="jquery.js" />
0
       </fileset>
0
       <arg line="-jar" />
0
-      <arg path="build/yuicompressor-2.4.2.jar" />
0
-      <arg value="--charset" />
0
-      <arg value="ANSI" />
0
-      <arg value="-o" />
0
+      <arg path="build/google-compiler-20091218.jar" />
0
+      <arg value="--warning_level" />
0
+      <arg value="QUIET" />
0
+      <arg value="--js_output_file" />
0
       <targetfile />
0
-      <mapper type="glob" from="jquery.js" to="jquery.min.js" />
0
+      <arg value="--js" />
0
+      <mapper type="glob" from="jquery.js" to="tmpmin" />
0
     </apply>
0
+    <concat destfile="${JQ_MIN}">
0
+      <filelist files="${JQ}, dist/tmpmin"/>
0
+      <filterchain>
0
+        <headfilter lines="15"/>
0
+      </filterchain>
0
+    </concat>
0
+    <concat destfile="${JQ_MIN}" append="yes">
0
+      <filelist files="dist/tmpmin"/>
0
+    </concat>
0
+    <delete file="dist/tmpmin"/>
0
         <echo message="${JQ_MIN} built." />
0
     </target>
0
 
0
build/google-compiler-20091218.jar
0
build/yuicompressor-2.4.2.jar
0
src/intro.js
...
2
3
4
5
 
6
7
8
 
 
 
 
 
9
10
11
...
2
3
4
 
5
6
7
8
9
10
11
12
13
14
15
16
0
@@ -2,10 +2,15 @@
0
  * jQuery JavaScript Library v@VERSION
0
  * http://jquery.com/
0
  *
0
- * Copyright (c) 2009 John Resig
0
+ * Copyright 2009, John Resig
0
  * Dual licensed under the MIT or GPL Version 2 licenses.
0
  * http://docs.jquery.com/License
0
  *
0
+ * Includes Sizzle.js
0
+ * http://sizzlejs.com/
0
+ * Copyright 2009, The Dojo Foundation
0
+ * Released under the MIT, BSD, and GPL Licenses.
0
+ *
0
  * Date: 
0
  */
0
 (function(window, undefined){

Comments

coling Tue Jan 19 04:10:19 -0800 2010

Rather than using 15 lines hard coded into the build script (which is bound to break at some point), would it not be better to change src/intro.js to use a JSDoc comment market (/* rather than /!) and add either the @license or @preserve tags to the comment so that it is kept in the output?

Parsed with GitHub Flavored Markdown
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server