peter-vilja / gulp-clean

A gulp plugin for removing files and folders from given paths.
178 stars 21 forks source link

Why was this deprecated in favor of 'del'? #23

Open ORESoftware opened 8 years ago

ORESoftware commented 8 years ago

"Deprecated in favor of https://github.com/gulpjs/gulp/blob/master/docs/recipes/delete-files-folder.md"

const del = require('del');
var x = del([]);

x is not an event emitter and therefore 'del' is not really a straightforward replacement/stand-in for this lib, is it?

palmerj commented 6 years ago

Yes I've had trouble with the recipe replacement, when the clean task not completing before other task dependency start. I've been using del 2.2 on MacOSX, which is supposed to return a promise. e.g

// clean-up dist directory
gulp.task('clean', function() {
    return del([options.distDir]);
});

Can anyone comments on this?