Skip to content

Commit

Permalink
Merge pull request #14 from sunrise/amogozov-add-nsp
Browse files Browse the repository at this point in the history
Check module vulnerabilities
  • Loading branch information
Artur Mogozov committed Dec 19, 2014
2 parents 5b575e9 + 51bff0d commit 49e1e03
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
ENV_VAR = NODE_ENV=test

all: jshint
$(ENV_VAR) ./node_modules/.bin/mocha --check-leaks --recursive ./test
all: jshint tests vulnerabilities

jshint:
$(ENV_VAR) ./node_modules/.bin/jshint index.js lib/* test/*

mocha:
$(ENV_VAR) ./node_modules/.bin/mocha --check-leaks --watch --colors --growl --recursive ./test

tests:
$(ENV_VAR) ./node_modules/.bin/mocha --check-leaks --recursive ./test

vulnerabilities:
./node_modules/.bin/nsp audit-package

.PHONY: all
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
},
"devDependencies": {
"mocha": "latest",
"jshint": "latest"
"jshint": "latest",
"nsp": "latest"
},
"scripts": {
"test": "make"
Expand Down

0 comments on commit 49e1e03

Please sign in to comment.