in tasks/archive.js [15:40]
module.exports = function(gulp, config, commandLineArguments) {
/*
* `gulp archive`
* Compresses the game into a .zip archive and stores it
* on config.archivesFolder
*
*/
gulp.task(
'archive',
gulp.series('clean', 'common', 'make', 'replace-sdk', () => {
const filename = commandLineArguments.zip;
return gulp
.src([
config.outputFolder + '/**',
'!' + config.outputFolder + '/archives/**',
'!**.zip',
])
.pipe(zip(filename))
.pipe(gulp.dest(config.archivesFolder))
.on('end', function() {
console.log('ZIP archive created');
});
}),
);
};