Merge pull request #1134 from nasa/dep-vuln-1130

[Build] Check dependencies for vulnerabilities
This commit is contained in:
Andrew Henry 2016-08-28 17:45:25 +01:00 committed by GitHub
commit 8aa3000fb1
2 changed files with 7 additions and 1 deletions

View File

@ -103,6 +103,11 @@ gulp.task('stylesheets', function () {
.pipe(gulp.dest(__dirname));
});
gulp.task('nsp', function (done) {
var nsp = require('gulp-nsp');
nsp({package: __dirname + '/package.json'}, done);
});
gulp.task('lint', function () {
var nonspecs = paths.specs.map(function (glob) {
return "!" + glob;
@ -152,6 +157,6 @@ gulp.task('develop', ['serve', 'stylesheets', 'watch']);
gulp.task('install', [ 'static', 'scripts' ]);
gulp.task('verify', [ 'lint', 'test', 'checkstyle' ]);
gulp.task('verify', [ 'lint', 'test', 'checkstyle', 'nsp' ]);
gulp.task('build', [ 'verify', 'install' ]);

View File

@ -15,6 +15,7 @@
"gulp-jscs": "^3.0.2",
"gulp-jshint": "^2.0.0",
"gulp-jshint-html-reporter": "^0.1.3",
"gulp-nsp": "^2.4.2",
"gulp-rename": "^1.2.2",
"gulp-replace-task": "^0.11.0",
"gulp-requirejs-optimize": "^0.3.1",