[Build] Add NSP task

...to check dependencies for known vulnerabilities.
This commit is contained in:
Victor Woeltjen 2016-08-22 15:32:08 -07:00 committed by Andrew Henry
parent 5a819a96de
commit 05e88e5dcf

View File

@ -103,6 +103,11 @@ gulp.task('stylesheets', function () {
.pipe(gulp.dest(__dirname)); .pipe(gulp.dest(__dirname));
}); });
gulp.task('nsp', function (done) {
var nsp = require('gulp-nsp');
nsp({package: __dirname + '/package.json'}, done);
});
gulp.task('lint', function () { gulp.task('lint', function () {
var nonspecs = paths.specs.map(function (glob) { var nonspecs = paths.specs.map(function (glob) {
return "!" + glob; return "!" + glob;