depcheck / gulp-depcheck

depcheck task for Gulp
3 stars 4 forks source link

Export depcheck for use in specials #8

Open edj-boston opened 7 years ago

edj-boston commented 7 years ago

It would be nice if gulp-depcheck exported the depcheck.specials property so I could do something like this:

gulp.task('package', g.depcheck({
    ignoreMatches : [
        'bootstrap',
        'font-awesome',
        'jquery',
        'npm-font-open-sans'
    ],
    specials : [
        g.depcheck.special['gulp-load-plugins'],
        g.depcheck.special.mocha,
        g.depcheck.special.babel
    ]
}));

As it is, I have to require depcheck itself to bring them in.

goloroden commented 7 years ago

Would you mind creating a PR for this?

edj-boston commented 7 years ago

Here you go: https://github.com/depcheck/gulp-depcheck/pull/9