Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Zinkovsky <igorzi@microsoft.com>2012-03-08 23:39:39 +0400
committerIgor Zinkovsky <igorzi@microsoft.com>2012-03-08 23:39:39 +0400
commit0c68604823ef71526aad604377f5a7db5d3dfb90 (patch)
tree18324447c96096e36fcb3c8bfdbe52dca653340e /vcbuild.bat
parent31ad1d29c7e2a2d7ea140799b180c53cfa53863c (diff)
add jslint to vcbuild.bat
Diffstat (limited to 'vcbuild.bat')
-rw-r--r--vcbuild.bat12
1 files changed, 12 insertions, 0 deletions
diff --git a/vcbuild.bat b/vcbuild.bat
index 721c9dde963..632668e4b0f 100644
--- a/vcbuild.bat
+++ b/vcbuild.bat
@@ -23,6 +23,7 @@ set test=
set test_args=
set msi=
set upload=
+set jslint=
:next-arg
if "%1"=="" goto args-done
@@ -45,6 +46,7 @@ if /i "%1"=="test-all" set test=test-all&goto arg-ok
if /i "%1"=="test" set test=test&goto arg-ok
if /i "%1"=="msi" set msi=1&goto arg-ok
if /i "%1"=="upload" set upload=1&goto arg-ok
+if /i "%1"=="jslint" set jslint=1&goto arg-ok
echo Warning: ignoring invalid command line option `%1`.
@@ -53,6 +55,7 @@ shift
goto next-arg
:args-done
if defined upload goto upload
+if defined jslint goto jslint
:project-gen
@@ -126,6 +129,9 @@ if "%test%"=="test-all" set test_args=%test_args%
echo running 'python tools/test.py %test_args%'
python tools/test.py %test_args%
+
+if "%test%"=="test" goto jslint
+
goto exit
:create-msvs-files-failed
@@ -145,6 +151,12 @@ scp Release\node.pdb node@nodejs.org:~/web/nodejs.org/dist/v%NODE_VERSION%/node.
@echo off
goto exit
+:jslint
+echo running jslint
+set PYTHONPATH=tools/closure_linter/
+python tools/closure_linter/closure_linter/gjslint.py --unix_mode --strict --nojsdoc -r lib/ -r src/ -r test/ --exclude_files lib/punycode.js
+goto exit
+
:help
echo vcbuild.bat [debug/release] [msi] [test-all/test-uv/test-internet/test-pummel/test-simple/test-message] [clean] [noprojgen] [nobuild] [nosign]
echo Examples: