Skip to content

Conversation

@mmattel
Copy link
Collaborator

@mmattel mmattel commented Oct 9, 2025

This PR is an attempt to update gulp from v4.0.2 to v5.0.1.
If possible, the update of gulp-zip from v5.1.0 to v6.1.0 will be included.

  • Already fixed:
    npm run preview does no longer reports anonymous ouputs.
    Adding callbacks as required by gulp and creating proper tasks/series fixed this.
  • OPEN:
    • Calling pack -> build in the gulpfile using a callback to eliminate the error: Did you forget to signal async completion does not work because .pipe(gulp.dest(dest)) in build returns a promise but not the required files. Using gulp v4 without the callback finishes the build process and creates the files. Also see .on('end',callback) for an idea how to solve this.
    • Using gulp-zip v6.1.0 in pack.js errors with zip is not a function. This can be possibly caused by the missing output of the build process: If the input to the zip function is not a valid vinyl file stream, the zip method will not be available, leading to the "zip is not a function" error. In case of a missing file stream, this should be covered by a correct error message. Note that upgrading gulp-zip in package.json was removed and needs to be added when the build process using gulp v5 has been fixed.

Currently on draft to add changes

@mmattel mmattel added the dependencies Pull requests that update a dependency file label Oct 9, 2025
mmattel and others added 10 commits October 9, 2025 11:53
Return promises from build and pack. This allows us to use async/await
in the gulpfile.js.
Build fails in case the font directory is missing.
Add a .keep file to the font directory to prevent the build from failing.
Check whether the destination directory exists in build task.
If it does not, create it to prevent the task from failing.
This replaces merge-stream with ordered-read-streams.
In gulp 5, merge-stream is no longer officially supported.
The ordered-read-streams is a drop-in replacement for merge-stream and
is maintained by the gulp team. For more context, check the following issue:
gulpjs/gulp#2802 (comment)
@mmattel mmattel requested a review from LukasHirt October 10, 2025 07:18
Fix the error in the format task by awaiting the prettierEslint promise.
To test the fix, run the format using npx gulp format.
@mmattel mmattel marked this pull request as ready for review October 10, 2025 10:14
@mmattel
Copy link
Collaborator Author

mmattel commented Oct 10, 2025

I tested the outcome with a build that takes the generated zip from local and not from minio --> works well

@mmattel mmattel merged commit a419e8f into master Oct 10, 2025
1 check passed
@mmattel mmattel deleted the update_gulp branch October 10, 2025 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants