diff options
author | Colin Snover <github.com@zetafleet.com> | 2011-01-17 18:49:24 -0600 |
---|---|---|
committer | Colin Snover <github.com@zetafleet.com> | 2011-01-17 18:49:24 -0600 |
commit | d503845d0cf45632c0d7c3542ffd1b19257a8e5e (patch) | |
tree | 9a324bb1bc73a1b796c461fc54039a0a03928937 /build/jslint-check.js | |
parent | 9c76ac4f6d295a5b593048e54b4c4231c092e58a (diff) | |
download | jquery-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.js | 10 |
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" ); } |