mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
31 lines
680 B
TypeScript
31 lines
680 B
TypeScript
/// <reference path="gulp-watch.d.ts" />
|
|
/// <reference path="../gulp/gulp.d.ts" />
|
|
|
|
import * as gulp from 'gulp';
|
|
import * as watch from 'gulp-watch';
|
|
|
|
gulp.task('stream', () =>
|
|
gulp.src('css/**/*.css')
|
|
.pipe(watch('css/**/*.css'))
|
|
.pipe(gulp.dest('build'))
|
|
);
|
|
|
|
gulp.task('callback', (cb: Function) =>
|
|
watch('css/**/*.css', () =>
|
|
gulp.src('css/**/*.css')
|
|
.pipe(watch('css/**/*.css'))
|
|
.on('end', cb)
|
|
)
|
|
);
|
|
|
|
gulp.task('build', () => {
|
|
var files = [
|
|
'app/**/*.ts',
|
|
'lib/**/*.ts',
|
|
'components/**/*.ts',
|
|
];
|
|
|
|
gulp.src(files, { base: '..' })
|
|
.pipe(watch(files, { base: '..' }));
|
|
});
|