Utilizing gulp-zip, I am zipping up my source files. My project consists of a main folder named FIFA, which includes subfolders with potentially more subfolders and files. Additionally, the FIFA folder contains essential files like package.json, gulp.js, among others. My goal is to use gulp-zip to compress the entire project into a folder named distribution and save the zip file there. Below is the code snippet I used:
gulp.task('zip', function () {
return gulp.src('./*,')
.pipe(zip('test.zip'))
.pipe(gulp.dest('./distribution'));
});
However, an issue arises where the zip file created in the distribution folder only includes the files directly within the FIFA folder, excluding any nested files in subfolders. For example, if there is a subfolder named ronaldo inside FIFA, and it contains a file called goal.js, that file is missing from the zip archive. Can you help me identify what mistake I have made here? Any advice would be greatly appreciated.