From c44f0cff4c8f4e9ec5ee72bb7c347e719eabd7d5 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Fri, 24 Sep 2021 13:03:47 +0800 Subject: [PATCH] chore: udpate gulp script --- antd-tools/gulpfile.js | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/antd-tools/gulpfile.js b/antd-tools/gulpfile.js index 8c57a0c84..f302d4a5a 100644 --- a/antd-tools/gulpfile.js +++ b/antd-tools/gulpfile.js @@ -328,7 +328,10 @@ function pub(done) { } } +let startTime = new Date(); gulp.task('compile-with-es', done => { + startTime = new Date(); + console.log('start compile at ', startTime); console.log('[Parallel] Compile to es...'); compile(false).on('finish', done); compileTs(false, done); @@ -340,11 +343,31 @@ gulp.task('compile-with-lib', done => { compileTs(true, done); }); +gulp.task('compile-with-es-ts-type', done => { + console.log('[Parallel] Compile to es ts type...'); + compileTs(false, done); +}); + +gulp.task('compile-with-lib-ts-type', done => { + console.log('[Parallel] Compile to lib ts type...'); + compileTs(true, done); +}); + gulp.task( 'compile', - gulp.series(gulp.parallel('compile-with-es', 'compile-with-lib'), done => { - done(); - }), + gulp.series( + gulp.parallel( + 'compile-with-es', + 'compile-with-lib', + 'compile-with-es-ts-type', + 'compile-with-lib-ts-type', + ), + done => { + console.log('end compile at ', new Date()); + console.log('compile time ', (new Date() - startTime) / 1000, 's'); + done(); + }, + ), ); gulp.task(