Gulp plugin to check your dependencies (through npm outdated)
npm install gulp-check-depsCheck your node dependencies (through npm outdated)
_In case you are looking for the cli binary, you should take a look to check-deps since this library has been split for npm_
``js
//gulpfile.js
var checkDeps = require('gulp-check-deps');
gulp.task('check:deps', function() {
return gulp.src('package.json').pipe(checkDeps());
});
`
Here is how you would do to use a custom NPM registry and make the task fail if it finds any git dependency:
`js
//gulpfile.js
var checkDeps = require('gulp-check-deps');
gulp.task('check:deps', function() {
var checkDepsConfig = {
npmArgs: ['--registry', 'http://private-npm.local'],
failForGitDependencies: true
};
return gulp.src('package.json').pipe(checkDeps(checkDepsConfig));
});
``
Copyright (c) 2015 PMSIpilot