1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Upgrade to Gulp 4

This required the following changes in the Gulpfile:

- Defining a series of tasks is no longer done with arrays, but with the
  `gulp.series` function. The `web` target is refactored to use a
  smaller number of tasks to prevent tasks from running multiple times.
- Getting all tasks must now be done through the task registry.
- Tasks that don't return anything must call `done` upon completion.

Moreover, this upgrade allows us to use the latest Node.js on Travis CI
again.
This commit is contained in:
Tim van der Meij 2018-11-18 18:33:23 +01:00
parent 74934db910
commit fa85f86298
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762
5 changed files with 563 additions and 442 deletions

View file

@ -33,4 +33,4 @@ gulp.task('build-worker', function() {
.pipe(gulp.dest(OUTPUT_PATH));
});
gulp.task('build', ['build-bundle', 'build-worker']);
gulp.task('build', gulp.series('build-bundle', 'build-worker'));