Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ORESoftware opened this issue Apr 4, 2016 · 1 comment
Open

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

ORESoftware opened this issue Apr 4, 2016 · 1 comment

Comments

@ORESoftware
Copy link

"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
Copy link

palmerj commented Dec 30, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants