export default function(patterns) {
    return function clean() {
        return require('del')(patterns);
    };
}

export default function(patterns) {
    return function clean(resolve, reject) {
        const del = require('del');

        del(patterns).then(resolve, reject);
    };
}

refactor to start@2