Skip to content

Commit 49e1e03

Browse files
author
Artur Mogozov
committed
Merge pull request #14 from sunrise/amogozov-add-nsp
Check module vulnerabilities
2 parents 5b575e9 + 51bff0d commit 49e1e03

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
ENV_VAR = NODE_ENV=test
22

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

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

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

11+
tests:
12+
$(ENV_VAR) ./node_modules/.bin/mocha --check-leaks --recursive ./test
13+
14+
vulnerabilities:
15+
./node_modules/.bin/nsp audit-package
16+
1217
.PHONY: all

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
},
2222
"devDependencies": {
2323
"mocha": "latest",
24-
"jshint": "latest"
24+
"jshint": "latest",
25+
"nsp": "latest"
2526
},
2627
"scripts": {
2728
"test": "make"

0 commit comments

Comments
 (0)