refactor(build): make gulp pipeline more modular

This commit is contained in:
Oliver Booth 2024-02-29 18:15:07 +00:00
parent 166fc72b42
commit 900d46115e
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5
1 changed files with 5 additions and 2 deletions

View File

@ -47,5 +47,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);