From 3c88bde0d15e61168b462b5548f792b9b5e0c088 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 28 Feb 2024 15:52:43 +0000 Subject: [PATCH] refactor(build): make gulp pipeline more modular --- Gulpfile.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Gulpfile.js b/Gulpfile.js index 4626dc7..106b26d 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -57,5 +57,8 @@ function copyImages() { .pipe(gulp.dest(`${destDir}/img`)); } -exports.default = compileSCSS; -exports.default = gulp.parallel(compileSCSS, gulp.series(compileTS, bundleJS), copyCSS, copyJS, copyImages); +exports.assets = copyImages; +exports.styles = gulp.parallel(compileSCSS, copyCSS); +exports.scripts = gulp.parallel(copyJS, gulp.series(compileTS, bundleJS)); + +exports.default = gulp.parallel(exports.styles, exports.scripts, exports.assets);