本文整理匯總了TypeScript中del.default方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript del.default方法的具體用法?TypeScript del.default怎麽用?TypeScript del.default使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類del
的用法示例。
在下文中一共展示了del.default方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: spawnNode
gulp.task("cov:instrument", async () => {
del(coverageRootPath);
del(nycOutputPath);
return spawnNode([
nycPath,
'instrument',
'--require',
'source-map-support/register',
'.',
'.'
], {
cwd: codeExtensionSourcesPath
});
});
示例2: del
task('clean.src', (done: Function) => {
del(['src/**/*.js', 'src/**/*.d.ts', '!src/components/slides/swiper-widget.*']).then(() => {
done();
}).catch(err => {
done(err);
});
});
示例3: mv
mv(copyInst.from, copyInst.toSrc, {mkdirp: true}, (err?) => {
if (err) {
reject(err);
} else {
resolve(del(p));
}
});
示例4: del
task('demos.clean', (done: Function) => {
del([`${DIST_DEMOS_ROOT}/**`]).then(() => {
done();
}).catch(err => {
done(err);
});
});
示例5: cleanAppDev
function cleanAppDev(done) {
del([
join(PATH.dest.dev.all, '**/*'),
'!' + PATH.dest.dev.lib,
'!' + join(PATH.dest.dev.lib, '*')
], done);
}
示例6: del
task('clean.src', (done: Function) => {
del(['src/**/*.js', 'src/**/*.d.ts']).then(() => {
done();
}).catch(err => {
done(err);
});
});
示例7: clean
// delete everything used in our test cycle here
function clean(): any {
'use strict';
// You can use multiple globbing patterns as you would with `gulp.src`
return del([DIST_DIR + '**/*', '!' + TEST_DIST, RELEASE_DIR + '**/*']).then((paths: Array<any>) => {
util.log('Deleted', chalk.yellow(paths && paths.join(', ') || '-'));
});
}
示例8: del
const clean = (): Promise<string[]> => {
return del([
'./www',
'./dist',
'./.tmp'
]).then((value) => {
return value
})
}
示例9: Promise
return new Promise((resolve, reject) => {
del(['.build/'], (err: any) => {
if (err) {
reject(err);
} else {
resolve();
}
});
});