Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 87 lines (64 sloc) 2.064 kb
f01c002 @jeresig Added the new Makefile.
jeresig authored
1 SRC_DIR = src
2 BUILD_DIR = build
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually b…
jeresig authored
3
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
4 PREFIX = .
5 DIST_DIR = ${PREFIX}/dist
f01c002 @jeresig Added the new Makefile.
jeresig authored
6
b4e23b5 @jeresig Reorganzing the jQuery source (first phase).
jeresig authored
7 BASE_FILES = ${SRC_DIR}/core.js\
afaae84 @jeresig support.js needs to come before event.js (also placed in a temporary …
jeresig authored
8 ${SRC_DIR}/support.js\
4afa608 @flesler jquery data: Closes #3539. Exposed jQuery.queue. Moved all the data a…
flesler authored
9 ${SRC_DIR}/data.js\
ebad701 @jeresig Split the queue code out from data.js into a dedicated queue.js file …
jeresig authored
10 ${SRC_DIR}/queue.js\
8e53f7b @jeresig Fixed typo in logic, also disabled function setters in this case to …
jeresig authored
11 ${SRC_DIR}/attributes.js\
520f1a2 @jeresig Broke the logic for .clean() wrap out into a separate, static, data s…
jeresig authored
12 ${SRC_DIR}/event.js\
b4e23b5 @jeresig Reorganzing the jQuery source (first phase).
jeresig authored
13 ${SRC_DIR}/selector.js\
7c04a64 @brandonaaron breaking jquery out into smaller modules. added attributes.js, manipu…
brandonaaron authored
14 ${SRC_DIR}/traversing.js\
15 ${SRC_DIR}/manipulation.js\
d7d908b @brandonaaron decoupling styles retrieval from the attr method
brandonaaron authored
16 ${SRC_DIR}/css.js\
b4e23b5 @jeresig Reorganzing the jQuery source (first phase).
jeresig authored
17 ${SRC_DIR}/ajax.js\
b70872f @jeresig Renamed the 'fx' module to 'effects'. Should've been done a long time…
jeresig authored
18 ${SRC_DIR}/effects.js\
aea452f @brandonaaron Merged dimensions with core
brandonaaron authored
19 ${SRC_DIR}/offset.js\
20 ${SRC_DIR}/dimensions.js
3980dc9 @wycats Added comments to various plugins and added make and ant options to m…
wycats authored
21
22 MODULES = ${SRC_DIR}/intro.js\
23 ${BASE_FILES}\
24 ${SRC_DIR}/outro.js
25
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually b…
jeresig authored
26 JQ = ${DIST_DIR}/jquery.js
4434b5a @jeresig Added support for making a minified version of jQuery.
jeresig authored
27 JQ_MIN = ${DIST_DIR}/jquery.min.js
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually b…
jeresig authored
28
766c376 @jeresig Now have accurate version information built into jquery.js - will bui…
jeresig authored
29 JQ_VER = `cat version.txt`
30 VER = sed s/@VERSION/${JQ_VER}/
31
950b5d6 @jeresig Added in integrated JSLint checking against the jQuery source. Just r…
jeresig authored
32 RHINO = java -jar ${BUILD_DIR}/js.jar
3fd62ea @jeresig Switched from using YUI Compressor to Google Compiler. Minified and G…
jeresig authored
33 MINJAR = java -jar ${BUILD_DIR}/google-compiler-20091218.jar
e943090 @jeresig Moved the test directory.
jeresig authored
34
4ec1b74 @rdworth Simplified getting the commit date using git log --pretty. Fixed miss…
rdworth authored
35 DATE=`git log -1 --pretty=format:%ad`
192d6cd @jeresig Moved the copyright to the intro file, added a ! so that it passes th…
jeresig authored
36
950b5d6 @jeresig Added in integrated JSLint checking against the jQuery source. Just r…
jeresig authored
37 all: jquery lint min
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
38 @@echo "jQuery build complete."
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually b…
jeresig authored
39
40 ${DIST_DIR}:
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
41 @@mkdir -p ${DIST_DIR}
f01c002 @jeresig Added the new Makefile.
jeresig authored
42
81f65ce @jeresig Pull in the Sizzle library dynamically using a submodule and make it …
jeresig authored
43 init:
44 @@echo "Grabbing external dependencies..."
6cf981e @jeresig Allow the Makefile to be more resiliant to broken builds and handle r…
jeresig authored
45 @@if test ! -d test/qunit/.git; then git clone git://github.com/jquery/qunit.git test/qunit; fi
46 @@if test ! -d src/sizzle/.git; then git clone git://github.com/jeresig/sizzle.git src/sizzle; fi
d3d497f @irae Ignore potential error codes from Github in doing a clone. Fixes #6049.
irae authored
47 - @@cd src/sizzle && git pull origin master > /dev/null 2>&1
48 - @@cd test/qunit && git pull origin master > /dev/null 2>&1
81f65ce @jeresig Pull in the Sizzle library dynamically using a submodule and make it …
jeresig authored
49
50 jquery: ${DIST_DIR} selector ${JQ}
31f1e99 @jeresig Add a new build mode to the Makefile that doesn't try to pull from ex…
jeresig authored
51 jq: ${DIST_DIR} ${JQ}
f01c002 @jeresig Added the new Makefile.
jeresig authored
52
950b5d6 @jeresig Added in integrated JSLint checking against the jQuery source. Just r…
jeresig authored
53 ${JQ}: selector ${MODULES}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
54 @@echo "Building" ${JQ}
f01c002 @jeresig Added the new Makefile.
jeresig authored
55
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored
56 @@mkdir -p ${DIST_DIR}
81f65ce @jeresig Pull in the Sizzle library dynamically using a submodule and make it …
jeresig authored
57
192d6cd @jeresig Moved the copyright to the intro file, added a ! so that it passes th…
jeresig authored
58 @@cat ${MODULES} | \
59 sed 's/Date:./&'"${DATE}"'/' | \
60 ${VER} > ${JQ};
f01c002 @jeresig Added the new Makefile.
jeresig authored
61
950b5d6 @jeresig Added in integrated JSLint checking against the jQuery source. Just r…
jeresig authored
62 selector: ${DIST_DIR} init
81f65ce @jeresig Pull in the Sizzle library dynamically using a submodule and make it …
jeresig authored
63 @@echo "Building selector code from Sizzle"
a33d01a @jeresig Remove the need for the return in sizzle-jquery and just remove the a…
jeresig authored
64 @@sed '/EXPOSE/r src/sizzle-jquery.js' src/sizzle/sizzle.js | grep -v window.Sizzle > src/selector.js
81f65ce @jeresig Pull in the Sizzle library dynamically using a submodule and make it …
jeresig authored
65
950b5d6 @jeresig Added in integrated JSLint checking against the jQuery source. Just r…
jeresig authored
66 lint: ${JQ}
67 @@echo "Checking jQuery against JSLint..."
68 @@${RHINO} build/jslint-check.js
69
4434b5a @jeresig Added support for making a minified version of jQuery.
jeresig authored
70 min: ${JQ_MIN}
71
72 ${JQ_MIN}: ${JQ}
73 @@echo "Building" ${JQ_MIN}
74
3fd62ea @jeresig Switched from using YUI Compressor to Google Compiler. Minified and G…
jeresig authored
75 @@head -15 ${JQ} > ${JQ_MIN}
76 @@${MINJAR} --js ${JQ} --warning_level QUIET >> ${JQ_MIN}
4434b5a @jeresig Added support for making a minified version of jQuery.
jeresig authored
77
f01c002 @jeresig Added the new Makefile.
jeresig authored
78 clean:
e943090 @jeresig Moved the test directory.
jeresig authored
79 @@echo "Removing Distribution directory:" ${DIST_DIR}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
80 @@rm -rf ${DIST_DIR}
81f65ce @jeresig Pull in the Sizzle library dynamically using a submodule and make it …
jeresig authored
81
82 @@echo "Removing built copy of Sizzle"
6803bf1 @rdworth Minor fix to Makefile so that 'make clean' doesn't fail when run imme…
rdworth authored
83 @@rm -f src/selector.js
5480cd3 @jeresig Shortened the build messages in the Makefile and added test/qunit and…
jeresig authored
84
85 @@echo "Removing cloned directories"
86 @@rm -rf test/qunit src/sizzle
Something went wrong with that request. Please try again.