jQuery: The Write Less, Do More JavaScript Library

Changeset 4244

Show
Ignore:
Timestamp:
12/19/07 22:26:05 (8 months ago)
Author:
joern.zaefferer
Message:

added version to all builds; changed current version to 1.2.2-pre - to be updated after each release so its clear that a build is from which milestone; build.xml cleanup (removing uselss lite, docs, test and _with_plguins targets); deleted useless docs build files (replaced by wiki and wiki xml exporter and api browsers)

Location:
trunk/jquery
Files:
2 added
2 removed
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/build.xml

    r3280 r4244  
    1 <project name="jQuery" default="all" basedir="."> 
     1<project name="jQuery" default="jquery" basedir="."> 
    22 
    33    <!-- 
    4     - Using this build file to create your own custom distribution - 
     4    To get jQuery even smaller, remove the modules you don't need by removing the fileset elements 
     5    in the jquery-target, for example leaving only these: 
    56 
    6     If you want to include jQuery on your site with a certain set of plugins, 
    7     follow these steps to create your custom build: 
     7    <fileset dir="${SRC_DIR}" includes="intro.js" /> 
     8    <fileset dir="${SRC_DIR}" includes="core.js" /> 
     9    <fileset dir="${SRC_DIR}" includes="selector.js" /> 
     10    <fileset dir="${SRC_DIR}" includes="event.js" /> 
     11    <fileset dir="${SRC_DIR}" includes="outro.js" /> 
    812 
    9     1. Copy the plugins you need to the plugins folder (if you haven't already, checkout 
    10        the plugins folder from SVN. 
    11     2. Modify the PLUGINS property to include all plugins you want, see PLUGINS_ALL for syntax 
    12        eg. if you need form and tabs plugin, set the value for PLUGINS to this: 
    13        form/*.js, tabs/*.js 
    14     3. Execute the standard jquery and packed targets to build your distribution 
    15  
    16     TODO Using this build file to create docs for a single plugin 
     13    That'd remove ajax, fx and offset support, leaving basic selectors, manipulation and event handling. 
    1714    --> 
    1815 
    1916    <!-- SETUP --> 
    2017 
    21     <property description="Source Folder" name="SRC_DIR" value="src" /> 
     18    <property description="Source Folder" name="SRC_DIR" value="src" /> 
    2219    <property description="Files for parsing etc." name="BUILD_DIR" value="build" /> 
    2320    <property description="Rhino JS Engine" name="JAR" value="${BUILD_DIR}/js.jar" /> 
    2421 
    25     <property description="Dir to look for plugins" name="PLUGIN_DIR" location="../plugins" /> 
    26     <property description="Add single plugins here" name="PLUGINS" value="none" /> 
    27     <property description="Add all plugins here" name="PLUGINS_ALL" 
    28         value="button/*.js,center/*.js,cookie/*.js,form/*.js,greybox/*.js,interface/*.js,pager/*.js,tablesorter/*.js,tabs/*.js,tooltip/*.js,accordion/*.js" /> 
    29  
    30     <property description="Target parent folder for built files" name="PREFIX" value="." /> 
    31     <property description="Folder for docs target" name="DOCS_DIR" value="${PREFIX}/docs" /> 
    32     <property description="Folder for test target" name="TEST_DIR" value="${PREFIX}/test" /> 
    33     <property description="Folder for jquery, min, lite and packed target" name="DIST_DIR" value="${PREFIX}/dist" /> 
     22    <property description="Folder for jquery, min, lite and packed target" name="DIST_DIR" value="./dist" /> 
    3423 
    3524    <!-- Files names for distribution --> 
     
    4130    <!-- MAIN --> 
    4231 
    43     <target name="jquery" description="Main jquery build, set PLUGINS property to include plugins"> 
     32    <target name="jquery" description="Main jquery build, concatenates source files and replaces @VERSION"> 
    4433        <echo message="Building ${JQ}" /> 
    4534        <mkdir dir="${DIST_DIR}" /> 
     
    5241            <fileset dir="${SRC_DIR}" includes="fx.js" /> 
    5342            <fileset dir="${SRC_DIR}" includes="offset.js" /> 
    54             <fileset dir="${PLUGIN_DIR}" includes="${PLUGINS}" /> 
    5543            <fileset dir="${SRC_DIR}" includes="outro.js" /> 
    5644        </concat> 
     45        <java jar="${JAR}" fork="true"> 
     46            <arg value="${BUILD_DIR}/build/version.js" /> 
     47            <arg value="${JQ}" /> 
     48        </java> 
    5749        <echo message="${JQ} built." /> 
    5850    </target> 
    5951 
    60     <target name="jquery_with_plugins" description="Build jquery with all plugins, useful to full documentation"> 
    61         <antcall target="jquery"> 
    62             <param name="PLUGINS" value="${PLUGINS_ALL}" /> 
    63         </antcall> 
    64     </target> 
    65  
    66     <target name="lite" depends="jquery" description="Remove all /** */ comments"> 
    67         <echo message="Building ${JQ_LITE}" /> 
    68         <java jar="${JAR}" fork="true"> 
    69             <arg value="${BUILD_DIR}/build/lite.js" /> 
    70             <arg value="${JQ}" /> 
    71             <arg value="${JQ_LITE}" /> 
    72         </java> 
    73         <echo message="${JQ_LITE} built." /> 
    74     </target> 
    75  
    76     <target name="min" depends="jquery" description="Remove all comments and whitespace, no compression"> 
     52    <target name="min" depends="jquery" description="Remove all comments and whitespace, no compression, great in combination with GZip"> 
    7753        <echo message="Building ${JQ_MIN}" /> 
    7854        <java jar="${JAR}" fork="true"> 
     
    9470    </target> 
    9571 
    96     <target name="pack_with_plugins" depends="jquery_with_plugins" description="Pack jquery with all plugins, not very useful"> 
    97         <echo message="Building ${JQ_PACK}" /> 
    98         <java jar="${JAR}" fork="true"> 
    99             <arg value="${BUILD_DIR}/build/pack.js" /> 
    100             <arg value="${JQ}" /> 
    101             <arg value="${JQ_PACK}" /> 
    102         </java> 
    103         <echo message="${JQ_PACK} built." /> 
    104     </target> 
    105  
    106     <target name="test" depends="jquery" description="Copy files for the test suite into their own directory."> 
    107         <echo message="Building Test Suite" /> 
    108     <!-- 
    109         <delete dir="${TEST_DIR}" /> 
    110         <mkdir dir="${TEST_DIR}/data" /> 
    111         <copy todir="${TEST_DIR}/data"> 
    112             <fileset dir="${BUILD_DIR}/test/data/" /> 
    113         </copy> 
    114         <copy todir="${TEST_DIR}" file="${BUILD_DIR}/test/index.html" /> 
    115     --> 
    116         <echo message="Test Suite built." /> 
    117     </target> 
    118  
    119     <target name="docs" depends="jquery" description="Reads inline docs from source and compiles into xml file"> 
    120         <echo message="Building Documentation" /> 
    121         <delete dir="${DOCS_DIR}" /> 
    122         <mkdir dir="${DOCS_DIR}/data" /> 
    123         <copy todir="${DOCS_DIR}" file="${BUILD_DIR}/docs/.htaccess" /> 
    124         <mkdir dir="${DOCS_DIR}/js" /> 
    125         <copy todir="${DOCS_DIR}/js"> 
    126             <fileset dir="${BUILD_DIR}/docs/js"> 
    127                 <include name="**/*.js" /> 
    128             </fileset> 
    129         </copy> 
    130         <copy todir="${DOCS_DIR}/style"> 
    131             <fileset dir="${BUILD_DIR}/docs/style"> 
    132                 <include name="**" /> 
    133             </fileset> 
    134         </copy> 
    135         <java jar="${JAR}" fork="true"> 
    136             <arg value="${BUILD_DIR}/docs/docs.js" /> 
    137             <arg value="${JQ}" /> 
    138             <arg value="${DOCS_DIR}" /> 
    139         </java> 
    140         <echo message="Documentation built." /> 
    141     </target> 
    142  
    143     <!-- TODO refactor to remove duplication with above --> 
    144     <target name="docs_with_plugins" depends="jquery_with_plugins"> 
    145         <echo message="Building Documentation" /> 
    146         <delete dir="${DOCS_DIR}" /> 
    147         <mkdir dir="${DOCS_DIR}/data" /> 
    148         <copy todir="${DOCS_DIR}" file="${BUILD_DIR}/docs/.htaccess" /> 
    149         <mkdir dir="${DOCS_DIR}/js" /> 
    150         <copy todir="${DOCS_DIR}/js"> 
    151             <fileset dir="${BUILD_DIR}/docs/js"> 
    152                 <include name="**/*.js" /> 
    153             </fileset> 
    154         </copy> 
    155         <copy todir="${DOCS_DIR}/style"> 
    156             <fileset dir="${BUILD_DIR}/docs/style"> 
    157                 <include name="**" /> 
    158             </fileset> 
    159         </copy> 
    160         <java jar="${JAR}" fork="true"> 
    161             <arg value="${BUILD_DIR}/docs/docs.js" /> 
    162             <arg value="${JQ}" /> 
    163             <arg value="${DOCS_DIR}" /> 
    164         </java> 
    165         <echo message="Documentation built." /> 
    166     </target> 
    167      
    16872    <target name="runtest"> 
    16973        <echo message="Running Automated Test Suite" /> 
     
    17579 
    17680    <target name="clean"> 
    177         <delete dir="${DOCS_DIR}" /> 
    178         <!-- <delete dir="${TEST_DIR}" /> --> 
    17981        <delete dir="${DIST_DIR}" /> 
    18082    </target> 
    18183 
    182     <target name="all" depends="clean,jquery,lite,min,pack,docs"> 
     84    <target name="all" depends="clean,jquery,min,pack"> 
    18385        <echo message="Build complete." /> 
    18486    </target> 
  • trunk/jquery/version.txt

    r4197 r4244  
    1 1.2.2b 
     11.2.2-pre