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:
parent
6cefe55819
commit
b142609e5a
@ -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'));
|
||||
|
@ -5,7 +5,6 @@
|
||||
"compilerOptions": {
|
||||
"noImplicitAny": true,
|
||||
"target": "es5",
|
||||
"outDir": "dist/",
|
||||
"experimentalDecorators": true
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user