diff --git a/package.json b/package.json index d0d9f790..bb369eac 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "devDependencies": { "archiver": "^3.0.0", "codemirror": "^5.41.0", + "dropbox": "^4.0.13", "endent": "^1.2.0", "eslint": "^5.9.0", "fs-extra": "^7.0.1", @@ -21,7 +22,8 @@ "updates": "^5.1.2", "usercss-meta": "^0.8.3", "web-ext": "^2.9.2", - "webext-tx-fix": "^0.3.1" + "webext-tx-fix": "^0.3.1", + "zipjs-browserify": "^1.0.1" }, "scripts": { "lint": "eslint **/*.js --cache || exit 0", diff --git a/sync/compress-text.js b/sync/compress-text.js index 8ecefe8c..b4829b22 100644 --- a/sync/compress-text.js +++ b/sync/compress-text.js @@ -3,7 +3,7 @@ 'use strict'; onDOMready().then(() => { - zip.workerScriptsPath = '../vendor/zipjs/'; + zip.workerScriptsPath = '../vendor/zipjs-browserify/'; }); /** diff --git a/tools/update-libraries.js b/tools/update-libraries.js index 30f8c7c3..9a14f4ec 100644 --- a/tools/update-libraries.js +++ b/tools/update-libraries.js @@ -11,6 +11,9 @@ const files = { '*', // only update existing vendor files 'theme' // update all theme files ], + 'dropbox': [ + 'dist/Dropbox-sdk.js → dropbox-sdk.js' + ], 'jsonlint': [ 'lib/jsonlint.js → jsonlint.js' ], @@ -31,6 +34,12 @@ const files = { ], 'usercss-meta': [ 'dist/usercss-meta.min.js → usercss-meta.min.js' + ], + 'zipjs-browserify': [ + 'vendor/deflate.js → deflate.js', + 'vendor/inflate.js → inflate.js', + 'vendor/z-worker.js → z-worker.js', + 'vendor/zip.js → zip.js' ] }; diff --git a/vendor/dropbox/README.md b/vendor/dropbox/README.md new file mode 100644 index 00000000..2a6971f8 --- /dev/null +++ b/vendor/dropbox/README.md @@ -0,0 +1,12 @@ +## Dropbox SDK v4.0.13 + +Dropbox DSK JS installed via npm - source repo: + +https://github.com/dropbox/dropbox-sdk-js/tree/v4.0.13 + +The source repo **does not** include the `dist` folder with the generated `dropbox-sdk.js` +distribution file. It can only be obtained from the npm `node_modules` folder after installing +the module. + +- https://www.npmjs.com/package/dropbox +- https://github.com/dropbox/dropbox-sdk-js/releases diff --git a/vendor/zipjs/LICENSE b/vendor/zipjs-browserify/LICENSE similarity index 100% rename from vendor/zipjs/LICENSE rename to vendor/zipjs-browserify/LICENSE diff --git a/vendor/zipjs-browserify/README.md b/vendor/zipjs-browserify/README.md new file mode 100644 index 00000000..d3b78f24 --- /dev/null +++ b/vendor/zipjs-browserify/README.md @@ -0,0 +1,8 @@ +## zipjs-browserify v1.0.1 + +zipjs installed via npm - source repo: + +- https://github.com/juliangruber/zipjs-browserify/tree/v1.0.1/vendor/deflate.js +- https://github.com/juliangruber/zipjs-browserify/tree/v1.0.1/vendor/inflate.js +- https://github.com/juliangruber/zipjs-browserify/tree/v1.0.1/vendor/z-worker.js +- https://github.com/juliangruber/zipjs-browserify/tree/v1.0.1/vendor/zip.js diff --git a/vendor/zipjs/deflate.js b/vendor/zipjs-browserify/deflate.js similarity index 100% rename from vendor/zipjs/deflate.js rename to vendor/zipjs-browserify/deflate.js diff --git a/vendor/zipjs/inflate.js b/vendor/zipjs-browserify/inflate.js similarity index 100% rename from vendor/zipjs/inflate.js rename to vendor/zipjs-browserify/inflate.js diff --git a/vendor/zipjs/z-worker.js b/vendor/zipjs-browserify/z-worker.js similarity index 100% rename from vendor/zipjs/z-worker.js rename to vendor/zipjs-browserify/z-worker.js diff --git a/vendor/zipjs/zip.js b/vendor/zipjs-browserify/zip.js similarity index 100% rename from vendor/zipjs/zip.js rename to vendor/zipjs-browserify/zip.js