cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [5/5] git commit: Fix up checkjs script.
Date Fri, 07 Mar 2014 14:51:17 GMT
Fix up checkjs script.


Project: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/commit/3e22a6ff
Tree: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/tree/3e22a6ff
Diff: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/diff/3e22a6ff

Branch: refs/heads/master
Commit: 3e22a6ffc156e7ebfb3c5896bb568cf4264992d3
Parents: 33e9d0d
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Thu Mar 6 22:39:37 2014 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Thu Mar 6 22:41:59 2014 -0500

----------------------------------------------------------------------
 checkjs | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-app-harness/blob/3e22a6ff/checkjs
----------------------------------------------------------------------
diff --git a/checkjs b/checkjs
index b62fa32..3d104f1 100755
--- a/checkjs
+++ b/checkjs
@@ -21,5 +21,10 @@
 # USAGE
 #   ./checkjs
 #
+
+if ! which jshint; then
+  echo "jshint not installed. Install it with: npm install -g jshint"
+  exit 1
+fi
 echo "Running jsHint"
-jshint www/cdvah_js/ --verbose --show-non-errors
+jshint www/ --exclude www/cdvah/js/libs --verbose --show-non-errors


Mime
View raw message