Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
gulp.task('clean', (c) => {
del([
'./public/',
], {
force: true,
}).then(paths => {
// eslint-disable-next-line no-console
c();
console.log('Files and folders that would be deleted:\n', paths.join('\n'));
});
});
const delPublish: DelPublish = (folder) => {
console.log(`delete publish folder: ${folder}`)
return del(folder)
}
gulp.task('clean', () => {
del('.config/tmp');
});
async function deleteTarget(project: Project) {
const targetDir = project.targetLocation;
if (await isDirectory(targetDir)) {
await del(targetDir, { force: true });
}
}
gulp.task('clean', cb => del(paths.dist + '**/*', cb));
gulp.task('data', () => {
del('.tmp/jsons/**/*.json');
return gulp.src('jsons/**/*.json')
.pipe(gulp.dest('.tmp/jsons'));
});
gulp.task('clean', function() {
return Promise.all([del('dist/'), del('coverage/')]);
});
async function clean() {
await del(['build/*']);
}
gulp.task('doc:clean', () => del('docs'))
gulp.task('clean', function (done) {
del(['lib', 'example/lib'], done);
});