2
0
mirror of https://github.com/gnu4cn/ts-learnings.git synced 2025-03-27 04:20:52 +08:00

Finised gulpfile.js .

This commit is contained in:
gnu4cn 2019-03-27 11:46:43 +08:00
parent 6cefe55819
commit b142609e5a
2 changed files with 5 additions and 3 deletions

View File

@ -18,8 +18,11 @@ gulp.task('tsc', () => {
.pipe(gulp.dest('dist'));
});
// 这里 watch 里必须使用 gulp.series
gulp.task('watch', () => {
gulp.watch('src/*ts', ['tsc']);
gulp.watch('src/*ts', gulp.series('tsc'));
});
gulp.task('default', gulp.series('copy-html', 'tsc', 'tsc'));
// 这里必须要有一个 default 任务
gulp.task('default', gulp.series('copy-html', 'tsc', 'watch'));

View File

@ -5,7 +5,6 @@
"compilerOptions": {
"noImplicitAny": true,
"target": "es5",
"outDir": "dist/",
"experimentalDecorators": true
}
}