UNPKG

@ehmicky/dev-tasks

Version:

Automated development tasks for my own projects

32 lines (21 loc) 562 B
import gulp from"gulp"; import{exec}from"gulp-execa"; import{DEPENDENCIES}from"../files.js"; import{getWatchTask}from"../watch.js"; const audit=async()=>{ try{ await exec("npm audit -h",{debug:false}) }catch{ return } try{ await exec("npm audit --color=always",{debug:false,all:true}) }catch(error){ console.error(error.all); throw error } }; const outdated=()=>exec("npm outdated"); export const warn=gulp.parallel(audit,outdated); warn.description="Check for outdated/vulnerable dependencies"; export const warnWatch=getWatchTask(DEPENDENCIES,warn);