refactor(build): make gulp pipeline more modular

This commit is contained in:
Oliver Booth 2024-02-28 15:52:43 +00:00
parent 72946ac625
commit 3c88bde0d1
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5
1 changed files with 5 additions and 2 deletions

View File

@ -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);