Permalink
Browse files

added css compression

  • Loading branch information...
narfdotpl committed Oct 9, 2010
1 parent 5a2333d commit f30a9a5b2b256dde9e94036a8eed165abfcb83ba
Showing with 12,385 additions and 106 deletions.
  1. +1 −105 demo/style.css
  2. +7 −1 fabfile.py
  3. 0 { → tools}/closure-compiler/COPYING
  4. 0 { → tools}/closure-compiler/README
  5. BIN { → tools}/closure-compiler/compiler.jar
  6. +8 −0 tools/yuicompressor/ant.properties
  7. +66 −0 tools/yuicompressor/build.xml
  8. BIN tools/yuicompressor/build/yuicompressor-2.4.2.jar
  9. +226 −0 tools/yuicompressor/doc/CHANGELOG
  10. +140 −0 tools/yuicompressor/doc/README
  11. BIN tools/yuicompressor/lib/jargs-1.0.jar
  12. BIN tools/yuicompressor/lib/rhino-1.6R7.jar
  13. +22 −0 tools/yuicompressor/src/com/yahoo/platform/yui/compressor/Bootstrap.java
  14. +188 −0 tools/yuicompressor/src/com/yahoo/platform/yui/compressor/CssCompressor.java
  15. +158 −0 tools/yuicompressor/src/com/yahoo/platform/yui/compressor/JarClassLoader.java
  16. +1,309 −0 tools/yuicompressor/src/com/yahoo/platform/yui/compressor/JavaScriptCompressor.java
  17. +55 −0 tools/yuicompressor/src/com/yahoo/platform/yui/compressor/JavaScriptIdentifier.java
  18. +28 −0 tools/yuicompressor/src/com/yahoo/platform/yui/compressor/JavaScriptToken.java
  19. +160 −0 tools/yuicompressor/src/com/yahoo/platform/yui/compressor/ScriptOrFnScope.java
  20. +232 −0 tools/yuicompressor/src/com/yahoo/platform/yui/compressor/YUICompressor.java
  21. +922 −0 tools/yuicompressor/src/org/mozilla/javascript/Decompiler.java
  22. +910 −0 tools/yuicompressor/src/org/mozilla/javascript/Decompiler.java.orig
  23. +2,178 −0 tools/yuicompressor/src/org/mozilla/javascript/Parser.java
  24. +2,159 −0 tools/yuicompressor/src/org/mozilla/javascript/Parser.java.orig
  25. +421 −0 tools/yuicompressor/src/org/mozilla/javascript/Token.java
  26. +417 −0 tools/yuicompressor/src/org/mozilla/javascript/Token.java.orig
  27. +1,380 −0 tools/yuicompressor/src/org/mozilla/javascript/TokenStream.java
  28. +1,398 −0 tools/yuicompressor/src/org/mozilla/javascript/TokenStream.java.orig
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -20,8 +20,11 @@
DEMO_DIR = join(REPO_DIR, 'demo')
DEMO_SOURCE_DIR = join(REPO_DIR, 'demo-source')
PLUGIN_DIR = join(REPO_DIR, 'plugin')
+TOOLS_DIR = join(REPO_DIR, 'tools')
-COMPILER_PATH = join(REPO_DIR, 'closure-compiler/compiler.jar')
+COMPILER_PATH = join(TOOLS_DIR, 'closure-compiler/compiler.jar')
+YUICOMPRESSOR_PATH = join(TOOLS_DIR,
+ 'yuicompressor/build/yuicompressor-2.4.2.jar')
PLUGIN_PATH = join(PLUGIN_DIR, 'jquery.typing-{0}.js'.format(VERSION))
COMPRESSED_PLUGIN_PATH = join(PLUGIN_DIR,
'jquery.typing-{0}.min.js'.format(VERSION))
@@ -105,6 +108,9 @@ def demo_css():
# render sass
local('sass {0} >> {1}'.format(style, output))
+ # compress css
+ local('java -jar {0} -o {1} {1}'.format(YUICOMPRESSOR_PATH, output))
+
def deploy():
"""
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,8 @@
+src.dir = src
+lib.dir = lib
+doc.dir = doc
+build.dir = build
+product.name = yuicompressor
+version.number = 2.4.2
+jar.name = ${product.name}-${version.number}.jar
+dist.package.name = ${product.name}-${version.number}
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<project name="YUI Compressor" default="build.jar" basedir=".">
+
+ <target name="clean" depends="-load.properties">
+ <delete dir="${build.dir}" quiet="true"/>
+ </target>
+
+ <target name="-load.properties">
+ <property file="ant.properties"/>
+ </target>
+
+ <target name="-init" depends="-load.properties">
+ <mkdir dir="${build.dir}"/>
+ </target>
+
+ <target name="build.classes" depends="-init">
+ <mkdir dir="${build.dir}/classes"/>
+ <javac srcdir="${src.dir}"
+ destdir="${build.dir}/classes"
+ includes="**/*.java"
+ deprecation="off"
+ debug="on"
+ source="1.4">
+ <classpath>
+ <pathelement location="${lib.dir}/jargs-1.0.jar"/>
+ <pathelement location="${lib.dir}/rhino-1.6R7.jar"/>
+ </classpath>
+ </javac>
+ </target>
+
+ <target name="build.jar" depends="build.classes">
+ <mkdir dir="${build.dir}/jar"/>
+ <!-- The order is important here. Rhino MUST be unjarred first!
+ (some of our own classes will override the Rhino classes) -->
+ <unjar src="${lib.dir}/jargs-1.0.jar" dest="${build.dir}/jar"/>
+ <unjar src="${lib.dir}/rhino-1.6R7.jar" dest="${build.dir}/jar"/>
+ <copy todir="${build.dir}/jar">
+ <fileset dir="${build.dir}/classes" includes="**/*.class"/>
+ </copy>
+ <jar destfile="${build.dir}/${jar.name}" basedir="${build.dir}/jar">
+ <manifest>
+ <attribute name="Main-Class" value="com.yahoo.platform.yui.compressor.Bootstrap"/>
+ </manifest>
+ </jar>
+ </target>
+
+ <target name="build.dist.package" depends="build.jar">
+ <mkdir dir="${build.dir}/${dist.package.name}"/>
+ <mkdir dir="${build.dir}/${dist.package.name}/build"/>
+ <copy file="${build.dir}/${jar.name}" todir="${build.dir}/${dist.package.name}/build"/>
+ <copy todir="${build.dir}/${dist.package.name}">
+ <fileset dir=".">
+ <include name="ant.properties"/>
+ <include name="build.xml"/>
+ <include name="doc/**/*"/>
+ <include name="lib/**/*"/>
+ <include name="src/**/*"/>
+ <exclude name="**/CVS"/>
+ </fileset>
+ </copy>
+ <zip destfile="${build.dir}/${dist.package.name}.zip"
+ basedir="${build.dir}"
+ includes="${dist.package.name}/**/*"/>
+ </target>
+
+</project>
Binary file not shown.
Oops, something went wrong.

0 comments on commit f30a9a5

Please sign in to comment.