Script to copy built files from BUILD_DIR to repository

This is to allow built files to be checked in.
This commit is contained in:
Christopher Allen
2021-06-22 13:39:31 +01:00
parent 25f073d0e3
commit e2c4a9b7f9
3 changed files with 14 additions and 0 deletions

View File

@@ -538,6 +538,17 @@ const build = gulp.parallel(
buildLangfiles
);
/**
* This task copies built files from BUILD_DIR back to the repository
* so they can be committed to git.
*/
function checkinBuilt() {
return gulp.src([
`${BUILD_DIR}/**.js`,
`${BUILD_DIR}/**/**.js`,
]).pipe(gulp.dest('.'));
};
module.exports = {
build: build,
core: buildCore,
@@ -547,5 +558,6 @@ module.exports = {
uncompressed: buildUncompressed,
compressed: buildCompressed,
generators: buildGenerators,
checkinBuilt: checkinBuilt,
advancedCompilationTest: buildAdvancedCompilationTest,
}