aboutsummaryrefslogtreecommitdiffstats
path: root/build/jslint-check.js
diff options
context:
space:
mode:
authorColin Snover <github.com@zetafleet.com>2011-01-17 18:49:24 -0600
committerColin Snover <github.com@zetafleet.com>2011-01-17 18:49:24 -0600
commitd503845d0cf45632c0d7c3542ffd1b19257a8e5e (patch)
tree9a324bb1bc73a1b796c461fc54039a0a03928937 /build/jslint-check.js
parent9c76ac4f6d295a5b593048e54b4c4231c092e58a (diff)
downloadjquery-d503845d0cf45632c0d7c3542ffd1b19257a8e5e.tar.gz
jquery-d503845d0cf45632c0d7c3542ffd1b19257a8e5e.zip
Replace build system with a faster new one that uses Node and UglifyJS and generates smaller minified files. Also removes builds through rake/ant since having 3 different build systems was too much to maintain (make was the only one consistently kept up-to-date). Fixes #7973.
Diffstat (limited to 'build/jslint-check.js')
-rw-r--r--build/jslint-check.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/build/jslint-check.js b/build/jslint-check.js
index 976975a26..72d670187 100644
--- a/build/jslint-check.js
+++ b/build/jslint-check.js
@@ -1,6 +1,6 @@
-load("build/jslint.js");
-
-var src = readFile("dist/jquery.js");
+var JSLINT = require("./lib/jslint").JSLINT,
+ print = require("sys").print,
+ src = require("fs").readFileSync("dist/jquery.js", "utf8");
JSLINT(src, { evil: true, forin: true, maxerr: 100 });
@@ -29,8 +29,8 @@ for ( var i = 0; i < e.length; i++ ) {
}
if ( found > 0 ) {
- print( "\n" + found + " Error(s) found." );
+ print( "\n" + found + " Error(s) found.\n" );
} else {
- print( "JSLint check passed." );
+ print( "JSLint check passed.\n" );
}