Now have accurate version information built into jquery.js - will build it into the docs and test suite next.
This commit is contained in:
parent
6cb2e8ee8b
commit
766c3765bd
5
Makefile
5
Makefile
|
@ -17,6 +17,9 @@ JQ = ${DIST_DIR}/jquery.js
|
||||||
JQ_LITE = ${DIST_DIR}/jquery.lite.js
|
JQ_LITE = ${DIST_DIR}/jquery.lite.js
|
||||||
JQ_PACK = ${DIST_DIR}/jquery.pack.js
|
JQ_PACK = ${DIST_DIR}/jquery.pack.js
|
||||||
|
|
||||||
|
JQ_VER = `cat version.txt`
|
||||||
|
VER = sed s/@VERSION/${JQ_VER}/
|
||||||
|
|
||||||
JAR = java -jar ${BUILD_DIR}/js.jar
|
JAR = java -jar ${BUILD_DIR}/js.jar
|
||||||
|
|
||||||
all: jquery lite pack docs test
|
all: jquery lite pack docs test
|
||||||
|
@ -31,7 +34,7 @@ ${JQ}: ${MODULES}
|
||||||
@@echo "Building" ${JQ}
|
@@echo "Building" ${JQ}
|
||||||
|
|
||||||
@@mkdir -p ${DIST_DIR}
|
@@mkdir -p ${DIST_DIR}
|
||||||
@@cat ${MODULES} > ${JQ};
|
@@cat ${MODULES} | ${VER} > ${JQ};
|
||||||
|
|
||||||
@@echo ${JQ} "Built"
|
@@echo ${JQ} "Built"
|
||||||
@@echo
|
@@echo
|
||||||
|
|
6
src/jquery/jquery.js
vendored
6
src/jquery/jquery.js
vendored
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* jQuery - New Wave Javascript
|
* jQuery @VERSION - New Wave Javascript
|
||||||
*
|
*
|
||||||
* Copyright (c) 2006 John Resig (jquery.com)
|
* Copyright (c) 2006 John Resig (jquery.com)
|
||||||
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
||||||
|
@ -190,7 +190,7 @@ var $ = jQuery;
|
||||||
|
|
||||||
jQuery.fn = jQuery.prototype = {
|
jQuery.fn = jQuery.prototype = {
|
||||||
/**
|
/**
|
||||||
* The current SVN version of jQuery.
|
* The current version of jQuery.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @property
|
* @property
|
||||||
|
@ -198,7 +198,7 @@ jQuery.fn = jQuery.prototype = {
|
||||||
* @type String
|
* @type String
|
||||||
* @cat Core
|
* @cat Core
|
||||||
*/
|
*/
|
||||||
jquery: "$Rev$",
|
jquery: "@VERSION",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The number of elements currently matched.
|
* The number of elements currently matched.
|
||||||
|
|
1
version.txt
Normal file
1
version.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
1.0.2
|
Loading…
Reference in a new issue