From: Asbjørn Sloth Tønnesen Date: Wed, 9 Feb 2011 13:40:50 +0000 (+0000) Subject: build: remove reference to dist/jquery.js from build/ X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=4fd6ef4adbf15abdb52f2268548b2abc9979d415 build: remove reference to dist/jquery.js from build/ This patch makes it easier to use jQuery's build system for other projects, without having to maintain a patch. Signed-off-by: Asbjørn Sloth Tønnesen --- diff --git a/Makefile b/Makefile index 48a885d..45d2764 100644 --- a/Makefile +++ b/Makefile @@ -95,7 +95,7 @@ ${SRC_DIR}/selector.js: ${SIZZLE_DIR}/sizzle.js lint: jquery @@if test ! -z ${JS_ENGINE}; then \ echo "Checking jQuery against JSLint..."; \ - ${JS_ENGINE} build/jslint-check.js; \ + ${JS_ENGINE} build/jslint-check.js ${JQ}; \ else \ echo "You must have NodeJS installed in order to test jQuery against JSLint."; \ fi diff --git a/build/jslint-check.js b/build/jslint-check.js index 72d6701..95224be 100644 --- a/build/jslint-check.js +++ b/build/jslint-check.js @@ -1,6 +1,8 @@ var JSLINT = require("./lib/jslint").JSLINT, print = require("sys").print, - src = require("fs").readFileSync("dist/jquery.js", "utf8"); + args = process.argv, + filename = args[2], + src = require("fs").readFileSync(filename, "utf8"); JSLINT(src, { evil: true, forin: true, maxerr: 100 });