From 5d8bfa57812c494738fbaa9d8885b51db2a274ae Mon Sep 17 00:00:00 2001 From: ehmicky Date: Mon, 11 Feb 2019 10:00:00 +0100 Subject: [PATCH] Add gulp audit --- gulp/tasks/test/tasks.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gulp/tasks/test/tasks.js b/gulp/tasks/test/tasks.js index 85453ed49..4830a3c10 100644 --- a/gulp/tasks/test/tasks.js +++ b/gulp/tasks/test/tasks.js @@ -50,6 +50,11 @@ const dup = function() { // eslint-disable-next-line fp/no-mutation dup.description = 'Check for code duplication' +const audit = () => gulpExeca('npm audit') + +// eslint-disable-next-line fp/no-mutation +audit.description = 'Check for security vulnerabilities' + const links = function() { return src(FILES.MARKDOWN, { since: lastRun(links) }).pipe( linksCheck({ full: false }), @@ -72,7 +77,7 @@ linksfull.description = const check = series(format, lint) -const testTask = parallel(check, dup, links) +const testTask = parallel(check, dup, audit, links) // eslint-disable-next-line fp/no-mutation testTask.description = 'Lint and test the application' @@ -92,6 +97,7 @@ module.exports = { format, lint, dup, + audit, links, linksfull, }