github github
  • Home
  • Pricing and Signup
  • Training
  • Gist
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
    • 1,218
    • 303
  • Source
  • Commits
  • Network
  • Pull Requests (7)
  • Graphs
  • Tree: af582b9

click here to add a description

click here to add a homepage

  • Switch Branches (9)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • spinner
    • tooltip
    • widget-super
  • Switch Tags (23)
    • 1.9m2
    • 1.9m1
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8.6
    • 1.8.5
    • 1.8.4
    • 1.8.3
    • 1.8.2
    • 1.8.1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
  • Contributors
Sending Request…
Downloads

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

Build: Cleanup and adding CSS minimization. Fixes #5824 - Minify CSS
jzaefferer (author)
Tue Oct 19 08:28:11 -0700 2010
commit  af582b97a70e955432fd
tree    fb75d841d0eb565acc7f
parent  25853beb68aaae8e7828

Showing 2 changed files with 37 additions and 18 deletions.

M build/build.xml 55 ••••
A build/build/yuicompressor-2.4.2.jar 0
Txt build/build.xml
  • View file @ af582b9
... ...
@@ -40,8 +40,9 @@
40 40
   <property name="core.files.min" value="jquery.ui.core.min.js, jquery.ui.widget.min.js, jquery.ui.mouse.min.js, jquery.ui.draggable.min.js, jquery.ui.droppable.min.js, jquery.ui.resizable.min.js, jquery.ui.selectable.min.js, jquery.ui.sortable.min.js, jquery.effects.core.min.js" />
41 41
 
42 42
   <property description="Google Closure" name="closure-jar" value="${build.dir}/google-compiler-20091218.jar" />
  43
+  <property description="YUI Compressor" name="yuicompressor-jar" value="${build.dir}/yuicompressor-2.4.2.jar" />
43 44
   
44  
-  <target name="deploy-release" depends="clean, docs-download, concatenate, minify, copy, replace-version, prepend-header, zip" description="Release builder">
  45
+  <target name="deploy-release" depends="clean, docs-download, copy, minify, replace-version, prepend-header, zip" description="Release builder">
45 46
   </target>
46 47
   
47 48
   <target name="replace-version">
... ...
@@ -74,6 +75,26 @@
74 75
       <fileset dir="${dist.dir}/ui-headered/" includes="*.js" />
75 76
     </copy>
76 77
     
  78
+    <copy todir="${dist.dir}/headers/">
  79
+      <fileset dir="${dist.dir}/themes/base" includes="*.css" />
  80
+    </copy>
  81
+    <replaceregexp match="^(\/\*.*?\*\/\s).+" replace="\1" flags="s">
  82
+        <fileset dir="${dist.dir}/headers/" includes="*.css"/>
  83
+    </replaceregexp>
  84
+    <for param="file">
  85
+      <path><fileset dir="${dist.dir}/themes/base/minified" includes="*.css" /></path>
  86
+      <sequential>
  87
+        <propertyregex override="yes" property="target" input="@{file}" regexp=".*[\\/](.+)\.min\.css$" replace="\1"/>
  88
+        <concat destfile="${dist.dir}/ui-headered/${target}.min.css">
  89
+          <header file="${dist.dir}/headers/${target}.css" />
  90
+          <fileset file="@{file}" />
  91
+        </concat>
  92
+      </sequential>
  93
+    </for>
  94
+    <copy todir="${dist.dir}/themes/base/minified" overwrite="true">
  95
+      <fileset dir="${dist.dir}/ui-headered/" includes="*.css" />
  96
+    </copy>
  97
+    
77 98
     <!-- once more for the i18n files -->
78 99
     <!-- need to clean up headers in those files first
79 100
     <copy todir="${dist.dir}/headers/i18n/">
... ...
@@ -136,13 +157,12 @@
136 157
 
137 158
   <target name="minify" depends="concatenate" description="Remove all comments and whitespace, no compression, great in combination with GZip">
138 159
     <echo message="Building minified" />
139  
-    <delete dir="${min.dir}/" />
140 160
     <mkdir dir="${min.dir}" />
141  
-    <delete dir="${min.dir}/i18n/" />
142 161
     <mkdir dir="${min.dir}/i18n/" />
  162
+    <mkdir dir="${dist.dir}/themes/base/minified" />
143 163
     
144 164
     <apply executable="java" parallel="false">
145  
-      <fileset dir="${src.dir}/" includes="jquery.ui.*.js, jquery.effects.*.js" />
  165
+      <fileset dir="${dist.dir}/ui" includes="*.js" />
146 166
       <arg line="-jar" />
147 167
       <arg path="${closure-jar}" />
148 168
       <arg value="--warning_level" />
... ...
@@ -153,13 +173,8 @@
153 173
       <mapper type="glob" from="*.js" to="${min.dir}/*.min.js" />
154 174
     </apply>
155 175
 
156  
-    <concat destfile="${min.dir}/${concatenated}.min.js">
157  
-      <filelist dir="${min.dir}" files="${core.files.min}" />
158  
-      <fileset dir="${min.dir}" includes="jquery.ui.*.js, jquery.effects.*.js" excludes="${core.files.min}" />
159  
-    </concat>
160  
-    
161 176
     <apply executable="java" parallel="false">
162  
-      <fileset dir="${src.dir}/i18n/" includes="jquery.ui.*.js" />
  177
+      <fileset dir="${dist.dir}/ui/i18n" includes="*.js" />
163 178
       <arg line="-jar" />
164 179
       <arg path="${closure-jar}" />
165 180
       <arg value="--warning_level" />
... ...
@@ -170,9 +185,17 @@
170 185
       <mapper type="glob" from="*.js" to="${min.dir}/i18n/*.min.js" />
171 186
     </apply>
172 187
 
173  
-    <concat destfile="${min.dir}/i18n/${concatenated.i18n}.min.js">
174  
-      <fileset dir="${min.dir}/i18n" includes="jquery.ui.*.js" />
175  
-    </concat>
  188
+    <apply executable="java" parallel="false">
  189
+      <fileset dir="${dist.dir}/themes/base" includes="*.css" />
  190
+      <arg line="-jar" />
  191
+      <arg path="${yuicompressor-jar}" />
  192
+      <arg line="--charset utf-8" />
  193
+      <arg line="-v" />
  194
+      <srcfile />
  195
+      <arg line="-o" />
  196
+      <mapper type="glob" from="*.css" to="${dist.dir}/themes/base/minified/*.min.css" />
  197
+      <targetfile/>
  198
+    </apply>
176 199
         
177 200
     <echo message="Minified ui/ built." />
178 201
   </target>
... ...
@@ -219,7 +242,7 @@
219 242
      <delete dir="dist" />
220 243
     </target>
221 244
   
222  
-  <target name="docs-download" depends="docs-clean">
  245
+  <target name="docs-download">
223 246
     <mkdir dir="${docs.dir}" />
224 247
     <property name="url" value="http://docs.jquery.com/action/render/UI/API/${release.version}/" />
225 248
 
... ...
@@ -269,10 +292,6 @@
269 292
     <get src="http://docs.jquery.com/action/render/UI/Effects/Transfer" dest="${docs.dir}effect-transfer.html" />
270 293
   </target>
271 294
   
272  
-  <target name="docs-clean">
273  
-    <delete dir="${docs.dir}" />
274  
-  </target>
275  
-  
276 295
   <target name="themes-download">
277 296
     <!-- to create/update query strings for the theme-file, execute this in Firebug on /download page:
278 297
     $("select option[value!=none]").map(function() { $(this).parent().val(this.value).change(); return $(this).parents("form").serialize(); }).get().join(",");
Txt build/build/yuicompressor-2.4.2.jar
  • View file @ af582b9
Binary file not shown

0 notes on commit af582b9

Please log in to comment.
Dedicated Server Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
  • Blog
  • Support
  • Training
  • Job Board
  • Shop
  • Contact
  • API
  • Status
  • © 2010 GitHub Inc. All rights reserved.
  • Terms of Service
  • Privacy
  • Security
  • English
  • Deutsch
  • Français
  • 日本語
  • Português (BR)
  • Русский
  • 中文
  • See all available languages

Your current locale selection: English. Choose another?

  • English
  • Afrikaans
  • Català
  • Čeština
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Русский
  • Српски
  • Svenska
  • 中文

Keyboard Shortcuts

Site wide shortcuts

s
Focus site search
?
Bring up this help dialog

Commit list

j
Move selected down
k
Move selected up
t
Open tree
p
Open parent
c or o or enter
Open commit

Pull request list

j
Move selected down
k
Move selected up
o or enter
Open issue

Issues

j
Move selected down
k
Move selected up
x
Toggle select target
o or enter
Open issue
I
Mark selected as read
U
Mark selected as unread
e
Close selected
y
Remove selected from view
c
Create issue
l
Create label
i
Back to inbox
u
Back to issues
/
Focus issues search

Network Graph

← or h
Scroll left
→ or l
Scroll right
↑ or k
Scroll up
↓ or j
Scroll down
t
Toggle visibility of head labels
shift ← or shift h
Scroll all the way left
shift → or shift l
Scroll all the way right
shift ↑ or shift k
Scroll all the way up
shift ↓ or shift j
Scroll all the way down