chore: copy prebuilt css/js assets

This commit is contained in:
Oliver Booth 2023-08-08 01:20:11 +01:00
parent c62a939f2e
commit 951e44743f
Signed by: oliverbooth
GPG Key ID: 725DB725A0D9EE61

View File

@ -24,10 +24,22 @@ function compileTS() {
.pipe(gulp.dest(`${destDir}/js`));
}
function copyJS() {
return gulp.src(`${srcDir}/ts/**/*.js`)
.pipe(rename({ suffix: '.min' }))
.pipe(gulp.dest(`${destDir}/js`));
}
function copyCSS() {
return gulp.src(`${srcDir}/scss/**/*.css`)
.pipe(rename({ suffix: '.min' }))
.pipe(gulp.dest(`${destDir}/css`));
}
function copyImages() {
return gulp.src(`${srcDir}/img/**/*.*`)
.pipe(gulp.dest(`${destDir}/img`));
}
exports.default = compileSCSS;
exports.default = gulp.parallel(compileSCSS, compileTS, copyImages);
exports.default = gulp.parallel(compileSCSS, compileTS, copyCSS, copyJS, copyImages);