ソースを参照

Add @uppy/utils skeleton.

```bash
mkdir -p packages/@uppy
cp -R package-template packages/@uppy/utils
vim packages/@uppy/utils/{README.md,package.json}
```

Next up, copying the implementation.
Renée Kooi 6 年 前
コミット
c1d378de21

+ 21 - 0
packages/@uppy/utils/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.

+ 22 - 0
packages/@uppy/utils/README.md

@@ -0,0 +1,22 @@
+# @uppy/utils
+
+<img src="https://uppy.io/images/logos/uppy-dog-head-arrow.svg" width="120" alt="Uppy logo: a superman puppy in a pink suit" align="right">
+
+<a href="https://www.npmjs.com/package/@uppy/utils"><img src="https://img.shields.io/npm/v/@uppy/utils.svg?style=flat-square"></a>
+<a href="https://travis-ci.org/transloadit/uppy"><img src="https://img.shields.io/travis/transloadit/uppy/master.svg?style=flat-square" alt="Build Status"></a>
+
+Shared utility functions for Uppy Core and the "official" plugins maintained by the Uppy team.
+
+Uppy is being developed by the folks at [Transloadit](https://transloadit.com), a versatile file encoding service.
+
+## Installation
+
+> Unless you are creating a custom plugin, you should not need to install this manually.
+
+```bash
+$ npm install @uppy/utils --save
+```
+
+## License
+
+[The MIT License](./LICENSE).

+ 22 - 0
packages/@uppy/utils/package.json

@@ -0,0 +1,22 @@
+{
+  "name": "@uppy/utils",
+  "description": "Shared utility functions for Uppy Core and plugins maintained by the Uppy team.",
+  "version": "0.25.5",
+  "license": "MIT",
+  "main": "lib/index.js",
+  "jsnext:main": "src/index.js",
+  "types": "types/index.d.ts",
+  "keywords": [
+    "file uploader",
+    "uppy"
+  ],
+  "homepage": "https://uppy.io",
+  "bugs": {
+    "url": "https://github.com/transloadit/uppy/issues"
+  },
+  "repository": {
+    "type": "git",
+    "url": "git+https://github.com/transloadit/uppy.git"
+  },
+  "dependencies": {}
+}

+ 0 - 0
packages/@uppy/utils/src/index.js


+ 0 - 0
packages/@uppy/utils/types/index.d.ts