mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
27 lines
601 B
TypeScript
27 lines
601 B
TypeScript
/// <reference path="../gulp/gulp.d.ts" />
|
|
/// <reference path="../del/del.d.ts" />
|
|
/// <reference path="vinyl-paths.d.ts" />
|
|
|
|
import gulp = require('gulp');
|
|
import del = require('del');
|
|
import paths = require('vinyl-paths');
|
|
|
|
gulp.task('delete', function () {
|
|
return gulp.src('app/*')
|
|
.pipe(paths(del));
|
|
});
|
|
|
|
// or if you need to use the paths after the pipeline
|
|
gulp.task('delete2', function (cb: Function) {
|
|
var vp = paths();
|
|
|
|
gulp.src('app/*')
|
|
.pipe(vp)
|
|
.pipe(gulp.dest('dist'))
|
|
.on('end', function () {
|
|
del(vp.paths, cb);
|
|
});
|
|
});
|
|
|
|
|