[Pkg-javascript-commits] [node-entities] 52/63: run jshint, push coverage to coveralls

Wolfgang Borgert debacle at moszumanska.debian.org
Mon Sep 22 08:15:48 UTC 2014


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to branch master
in repository node-entities.

commit f4df5b0f6b33f3c71ce6e6573897a08de97c8d6e
Author: fb55 <me at feedic.com>
Date:   Mon Mar 17 21:19:44 2014 +0100

    run jshint, push coverage to coveralls
---
 .travis.yml  |  2 ++
 package.json | 32 +++++++++++++++++++++++++++++---
 2 files changed, 31 insertions(+), 3 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index e20bedc..8724b6c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,3 +3,5 @@ node_js:
   - 0.8
   - "0.10"
   - 0.11
+
+script: npm run coveralls
diff --git a/package.json b/package.json
index e2c1e5e..7fe9de4 100644
--- a/package.json
+++ b/package.json
@@ -14,14 +14,40 @@
     "test": "test"
   },
   "devDependencies": {
-    "mocha": "~1.9.0"
+    "mocha": "1",
+    "mocha-lcov-reporter": "*",
+    "coveralls": "*",
+    "istanbul":  "*",
+    "jshint": "2"
   },
   "scripts": {
-    "test": "mocha"
+    "test": "mocha && npm run lint",
+    "lint": "jshint index.js lib/*.js test/*.js",
+    "lcov": "istanbul cover _mocha --report lcovonly -- -R spec",
+    "coveralls": "npm run lint && npm run lcov && (cat coverage/lcov.info | coveralls || exit 0)"
   },
   "repository": {
     "type": "git",
     "url": "git://github.com/fb55/node-entities.git"
   },
-  "license": "BSD-like"
+  "license": "BSD-like",
+  "jshintConfig": {
+    "eqeqeq": true,
+    "freeze": true,
+    "latedef": "nofunc",
+    "noarg": true,
+    "nonbsp": true,
+    "quotmark": "double",
+    "undef": true,
+    "unused": true,
+    "trailing": true,
+    "eqnull": true,
+    "proto": true,
+    "smarttabs": true,
+    "node": true,
+    "globals": {
+      "describe": true,
+      "it": true
+    }
+  }
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-entities.git



More information about the Pkg-javascript-commits mailing list