Open KiT106 opened 7 years ago
del 2.x supports promises, below is my implementation:
function clean(path, done) {
log('Cleaning assets: ' + $.util.colors.blue(path));
del(path)
.then(function sucess() {
done();
})
.catch(function failure(exception) {
log('Cleaning assets exception: ' + exception);
});
}
So,
clean
function should upgrade like: