d688b8ea31
The `gulp-util` module is now deprecated and authors are asked to stop using it (refer to https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5 for more information). PDF.js does not rely on it that much, fortunately, so it's relatively easy for us to remove the dependency. This patch does that by making the following changes: - Require `gulp-zip` version 4.1.0 or higher since they already removed their `gulp-util` dependency in that version. - Replace `gulp-util.log` with the `fancylog` module as recommended in the article above. - Replace `gulp-util.File` with the `Vinyl` module as recommended in the article above. The only change I had to make for Vinyl is removing the `base` and `cwd` lines since they may not be empty strings anymore. This way we fall back to the defaults Vinyl provides, which for us doesn't matter since we move the file afterwards anyway. Moreover, I used `vfs` for `vinyl-fs` in the `Gulpfile` to avoid confusion with `vinyl` (which is also how the documentation names the variable). This is all we can do on our side; the other modules that still use `gulp-util` must be updated upstream.
50 lines
1.3 KiB
JSON
50 lines
1.3 KiB
JSON
{
|
|
"name": "pdf.js",
|
|
"version": "2.0.0",
|
|
"devDependencies": {
|
|
"acorn": "^5.1.2",
|
|
"babel-core": "^6.26.0",
|
|
"babel-loader": "^7.1.2",
|
|
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
|
|
"babel-preset-env": "^1.6.0",
|
|
"core-js": "^2.5.1",
|
|
"escodegen": "^1.9.0",
|
|
"eslint": "^4.10.0",
|
|
"eslint-plugin-mozilla": "^0.4.9",
|
|
"eslint-plugin-no-unsanitized": "^2.0.1",
|
|
"fancy-log": "^1.3.2",
|
|
"gulp": "^3.9.1",
|
|
"gulp-rename": "^1.2.2",
|
|
"gulp-replace": "^0.6.1",
|
|
"gulp-transform": "^3.0.5",
|
|
"gulp-zip": "^4.1.0",
|
|
"jasmine": "^2.8.0",
|
|
"jasmine-core": "^2.8.0",
|
|
"jsdoc": "^3.5.5",
|
|
"merge-stream": "^1.0.1",
|
|
"mkdirp": "^0.5.1",
|
|
"node-ensure": "^0.0.0",
|
|
"rimraf": "^2.6.2",
|
|
"streamqueue": "^1.1.1",
|
|
"systemjs": "^0.20.19",
|
|
"systemjs-plugin-babel": "^0.0.25",
|
|
"ttest": "^1.1.0",
|
|
"typogr": "^0.6.7",
|
|
"uglify-es": "^3.1.2",
|
|
"vinyl": "^2.1.0",
|
|
"vinyl-fs": "^2.4.4",
|
|
"webpack": "^3.6.0",
|
|
"webpack-stream": "^4.0.0",
|
|
"wintersmith": "^2.4.1",
|
|
"yargs": "^9.0.1"
|
|
},
|
|
"scripts": {
|
|
"test": "gulp lint unittestcli externaltest"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/mozilla/pdf.js.git"
|
|
},
|
|
"license": "Apache-2.0"
|
|
}
|