mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 12:16:38 +08:00
40 lines
1.0 KiB
TypeScript
40 lines
1.0 KiB
TypeScript
/// <reference path="./del.d.ts"/>
|
|
import del = require("del");
|
|
|
|
var paths = ["build", "dist/**/*.js"];
|
|
|
|
del(["tmp/*.js", "!tmp/unicorn.js"]);
|
|
|
|
del(["tmp/*.js", "!tmp/unicorn.js"], {force: true});
|
|
|
|
del(["tmp/*.js", "!tmp/unicorn.js"]).then((paths: string[]) => {
|
|
console.log('Deleted files/folders:\n', paths.join('\n'));
|
|
});
|
|
|
|
del(["tmp/*.js", "!tmp/unicorn.js"], {force: true}).then((paths: string[]) => {
|
|
console.log('Deleted files/folders:\n', paths.join('\n'));
|
|
});
|
|
|
|
del("tmp/*.js");
|
|
|
|
del("tmp/*.js", {force: true});
|
|
|
|
del("tmp/*.js").then((paths: string[]) => {
|
|
console.log('Deleted files/folders:\n', paths.join('\n'));
|
|
});
|
|
|
|
del("tmp/*.js", {force: true}).then((paths: string[]) => {
|
|
console.log('Deleted files/folders:\n', paths.join('\n'));
|
|
});
|
|
|
|
var paths: string[];
|
|
paths = del.sync(["tmp/*.js", "!tmp/unicorn.js"]);
|
|
|
|
paths = del.sync(["tmp/*.js", "!tmp/unicorn.js"], {force: true});
|
|
|
|
paths = del.sync("tmp/*.js");
|
|
|
|
paths = del.sync("tmp/*.js", {force: true});
|
|
|
|
paths = del.sync("tmp/*.js", {dryRun: true});
|