From 7c80268cdc5bd08b924cce63341fa782e3788aaa Mon Sep 17 00:00:00 2001 From: Artur Paikin Date: Mon, 18 Jun 2018 00:49:34 -0400 Subject: [PATCH] Move `Transloadit` plugin to `@uppy/transloadit` --- packages/@uppy/transloadit/LICENSE | 21 ++++++++++ packages/@uppy/transloadit/README.md | 42 +++++++++++++++++++ packages/@uppy/transloadit/package.json | 39 +++++++++++++++++ .../@uppy/transloadit/src}/Client.js | 0 .../@uppy/transloadit/src}/Socket.js | 0 .../@uppy/transloadit/src}/index.js | 0 .../@uppy/transloadit/src}/index.test.js | 0 packages/@uppy/transloadit/types/index.d.ts | 0 src/index.js | 2 +- 9 files changed, 103 insertions(+), 1 deletion(-) create mode 100644 packages/@uppy/transloadit/LICENSE create mode 100644 packages/@uppy/transloadit/README.md create mode 100644 packages/@uppy/transloadit/package.json rename {src/plugins/Transloadit => packages/@uppy/transloadit/src}/Client.js (100%) rename {src/plugins/Transloadit => packages/@uppy/transloadit/src}/Socket.js (100%) rename {src/plugins/Transloadit => packages/@uppy/transloadit/src}/index.js (100%) rename {src/plugins/Transloadit => packages/@uppy/transloadit/src}/index.test.js (100%) create mode 100644 packages/@uppy/transloadit/types/index.d.ts diff --git a/packages/@uppy/transloadit/LICENSE b/packages/@uppy/transloadit/LICENSE new file mode 100644 index 000000000..c23747330 --- /dev/null +++ b/packages/@uppy/transloadit/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2018 Transloadit + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/@uppy/transloadit/README.md b/packages/@uppy/transloadit/README.md new file mode 100644 index 000000000..9a98b058f --- /dev/null +++ b/packages/@uppy/transloadit/README.md @@ -0,0 +1,42 @@ +# @uppy/transloadit + +Uppy logo: a superman puppy in a pink suit + + +Build Status + +The Transloadit plugin can be used to upload files to Transloadit for all kinds of processing, such as transcoding video, resizing images, zipping/unzipping, [and more](https://transloadit.com/services/). + +[Try it live →](https://uppy.io/examples/transloadit/) + +Uppy is being developed by the folks at [Transloadit](https://transloadit.com), a versatile file encoding service. + +## Example + +```js +const Uppy = require('@uppy/core') +const Transloadit = require('@uppy/transloadit') + +const uppy = Uppy() +uppy.use(Transloadit, { + // Plugins +}) +``` + +## Installation + +```bash +$ npm install @uppy/transloadit --save +``` + +We recommend installing from npm and then using a module bundler such as [Webpack](http://webpack.github.io/), [Browserify](http://browserify.org/) or [Rollup.js](http://rollupjs.org/). + +Alternatively, you can also use this plugin in a pre-built bundle from Transloadit's CDN: Edgly. In that case `Uppy` will attach itself to the global `window.Uppy` object. See the [main Uppy documentation](https://uppy.io/docs/#Installation) for instructions. + +## Documentation + +Documentation for this plugin can be found on the [Uppy website](https://uppy.io/docs/transloadit). + +## License + +[The MIT License](./LICENSE). diff --git a/packages/@uppy/transloadit/package.json b/packages/@uppy/transloadit/package.json new file mode 100644 index 000000000..e270ce2b5 --- /dev/null +++ b/packages/@uppy/transloadit/package.json @@ -0,0 +1,39 @@ +{ + "name": "@uppy/transloadit", + "description": "The Transloadit plugin can be used to upload files to Transloadit for all kinds of processing, such as transcoding video, resizing images, zipping/unzipping, and more", + "version": "0.25.5", + "license": "MIT", + "main": "lib/index.js", + "jsnext:main": "src/index.js", + "types": "types/index.d.ts", + "keywords": [ + "file uploader", + "transloadit", + "file encoding", + "encoding", + "file processing", + "video encoding", + "crop", + "resize", + "watermark", + "uppy", + "uppy-plugin" + ], + "homepage": "https://uppy.io", + "bugs": { + "url": "https://github.com/transloadit/uppy/issues" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/transloadit/uppy.git" + }, + "dependencies": { + "@uppy/utils": "^0.25.5", + "@uppy/provider-views": "^0.25.5", + "@uppy/server-utils": "^0.25.5", + "@uppy/tus": "^0.25.5" + }, + "peerDependencies": { + "@uppy/core": "^0.25.5" + } +} diff --git a/src/plugins/Transloadit/Client.js b/packages/@uppy/transloadit/src/Client.js similarity index 100% rename from src/plugins/Transloadit/Client.js rename to packages/@uppy/transloadit/src/Client.js diff --git a/src/plugins/Transloadit/Socket.js b/packages/@uppy/transloadit/src/Socket.js similarity index 100% rename from src/plugins/Transloadit/Socket.js rename to packages/@uppy/transloadit/src/Socket.js diff --git a/src/plugins/Transloadit/index.js b/packages/@uppy/transloadit/src/index.js similarity index 100% rename from src/plugins/Transloadit/index.js rename to packages/@uppy/transloadit/src/index.js diff --git a/src/plugins/Transloadit/index.test.js b/packages/@uppy/transloadit/src/index.test.js similarity index 100% rename from src/plugins/Transloadit/index.test.js rename to packages/@uppy/transloadit/src/index.test.js diff --git a/packages/@uppy/transloadit/types/index.d.ts b/packages/@uppy/transloadit/types/index.d.ts new file mode 100644 index 000000000..e69de29bb diff --git a/src/index.js b/src/index.js index b83612a0e..a143ca8d2 100644 --- a/src/index.js +++ b/src/index.js @@ -27,7 +27,7 @@ const Informer = require('@uppy/informer') // Uploaders const Tus = require('@uppy/tus') const XHRUpload = require('@uppy/aws-s3') -const Transloadit = require('./plugins/Transloadit') +const Transloadit = require('@uppy/transloadit') const AwsS3 = require('@uppy/aws-s3') // Helpers and utilities