How to use the del function in del

To help you get started, we’ve selected a few del examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ukonpower / glsl-graphics / gulpfile.babel.js View on Github external
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'));
    });
});
github Lucifier129 / react-imvc / src / build / index.ts View on Github external
const delPublish: DelPublish = (folder) => {
  console.log(`delete publish folder: ${folder}`)
  return del(folder)
}
github peteroome / giphy-menubar / tasks / build_app.js View on Github external
gulp.task('clean', () => {
  del('.config/tmp');
});
github elastic / kibana / packages / kbn-pm / src / production / build_production_projects.ts View on Github external
async function deleteTarget(project: Project) {
  const targetDir = project.targetLocation;

  if (await isDirectory(targetDir)) {
    await del(targetDir, { force: true });
  }
}
github UltimateAngular / ultimate-angular-master-seed / gulpfile.babel.js View on Github external
gulp.task('clean', cb => del(paths.dist + '**/*', cb));
github higlass / higlass / gulpfile.babel.js View on Github external
gulp.task('data', () => {
    del('.tmp/jsons/**/*.json');

    return gulp.src('jsons/**/*.json')
            .pipe(gulp.dest('.tmp/jsons'));
});
github github-tools / github / gulpfile.babel.js View on Github external
gulp.task('clean', function() {
   return Promise.all([del('dist/'), del('coverage/')]);
});
github zentrick / iab-vast-model / gulpfile.babel.js View on Github external
gulp.task('doc:clean', () => del('docs'))
github knpwrs / css-modules-electron / gulpfile.babel.js View on Github external
gulp.task('clean', function (done) {
  del(['lib', 'example/lib'], done);
});

del

Delete files and directories

MIT
Latest version published 1 year ago

Package Health Score

67 / 100
Full package analysis

Popular del functions