Skip to content

Commit

Permalink
Add gulp audit
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Feb 11, 2019
1 parent 59a734e commit 5d8bfa5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gulp/tasks/test/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
Expand All @@ -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'
Expand All @@ -92,6 +97,7 @@ module.exports = {
format,
lint,
dup,
audit,
links,
linksfull,
}

0 comments on commit 5d8bfa5

Please sign in to comment.