update gulpfile.js

This commit is contained in:
zhongsp 2015-05-06 20:55:31 +08:00
parent 5931e648b5
commit f6b4a23689

View File

@ -2,7 +2,7 @@ var gulp = require('gulp'),
ts = require('gulp-typescript');
gulp.task('typescript', function() {
var tsResult = gulp.src('ts/*.ts')
var tsResult = gulp.src('ts/**/*.ts')
.pipe(ts({
target: 'ES5',
declarationFiles: false,
@ -15,7 +15,7 @@ gulp.task('typescript', function() {
});
gulp.task('watch', function() {
gulp.watch(['ts/*.ts'], ['typescript']);
gulp.watch(['ts/**/*.ts'], ['typescript']);
});
gulp.task('default', ['typescript', 'watch']);