Permalink
Browse files

update nsp. allow nsp target to output success message

  • Loading branch information...
1 parent 5cfdf71 commit 987a6185495a72279c6d334f15ca5e4af22a97e9 @DonutEspresso DonutEspresso committed Jan 4, 2016
Showing with 5 additions and 3 deletions.
  1. +1 −1 Makefile
  2. +1 −1 README.md
  3. +1 −1 package.json
  4. +2 −0 tools/nspBadge.js
View
@@ -64,7 +64,7 @@ test: $(NODEUNIT)
.PHONY: nsp
nsp: node_modules $(NSP)
@$(NPM) shrinkwrap --dev
- @($(NSP) check || echo 1) | $(NSP_BADGE)
+ @($(NSP) check) | $(NSP_BADGE)
@rm $(SHRINKWRAP)
include ./tools/mk/Makefile.deps
View
@@ -5,7 +5,7 @@
[![Dependency Status](https://david-dm.org/restify/node-restify.svg)](https://david-dm.org/restify/node-restify)
[![devDependency Status](https://david-dm.org/restify/node-restify/dev-status.svg)](https://david-dm.org/restify/node-restify#info=devDependencies)
[![bitHound Score](https://www.bithound.io/github/restify/node-restify/badges/score.svg)](https://www.bithound.io/github/restify/node-restify/master)
-[![NSP Status](https://img.shields.io/badge/NSP%20status-vulnerabilities%20found-red.svg)](https://travis-ci.org/restify/node-restify)
+[![NSP Status](https://img.shields.io/badge/NSP%20status-no%20vulnerabilities-green.svg)](https://travis-ci.org/restify/node-restify)
[restify](http://restify.com) is a smallish framework,
similar to [express](http://expressjs.com) for building REST APIs. For full
View
@@ -85,7 +85,7 @@
"filed": "^0.1.0",
"jscs": "^2.7.0",
"nodeunit": "^0.9.1",
- "nsp": "^2.1.0",
+ "nsp": "^2.2.0",
"restify-clients": "^1.1.1",
"restify-plugins": "^1.0.2",
"watershed": "^0.3.0"
View
@@ -17,6 +17,8 @@ process.stdin.on('data', function (exitCodeBuf) {
var nspExitCode = parseInt(exitCodeBuf.toString(), 10);
if (isNaN(nspExitCode)) {
+ // output any success message
+ console.warn(exitCodeBuf.toString());
nspExitCode = 0;
}

0 comments on commit 987a618

Please sign in to comment.