package.json 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. {
  2. "name": "uppy",
  3. "version": "0.24.3",
  4. "description": "Extensible JavaScript file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Instagram, Dropbox, Google Drive, S3 and more :dog:",
  5. "main": "lib/index.js",
  6. "jsnext:main": "src/index.js",
  7. "unpkg": "dist/uppy.min.js",
  8. "files": [
  9. "src/",
  10. "lib/",
  11. "dist/",
  12. "test/",
  13. "bin/",
  14. "examples/"
  15. ],
  16. "lint-staged": {
  17. "*.js": "eslint"
  18. },
  19. "pre-commit": "lint-staged",
  20. "repository": {
  21. "type": "git",
  22. "url": "git+https://github.com/transloadit/uppy.git"
  23. },
  24. "keywords": [
  25. "file uploader",
  26. "drag-drop",
  27. "progress",
  28. "preview",
  29. "resumable uploads",
  30. "xhr",
  31. "tus",
  32. "s3",
  33. "google drive",
  34. "dropbox",
  35. "webcam"
  36. ],
  37. "license": "MIT",
  38. "bugs": {
  39. "url": "https://github.com/transloadit/uppy/issues"
  40. },
  41. "homepage": "https://uppy.io",
  42. "jest": {
  43. "testPathIgnorePatterns": [
  44. "lib"
  45. ]
  46. },
  47. "devDependencies": {
  48. "autoprefixer": "^7.2.5",
  49. "babel-cli": "^6.26.0",
  50. "babel-core": "^6.26.0",
  51. "babel-jest": "^22.0.6",
  52. "babel-plugin-es6-promise": "^1.1.1",
  53. "babel-plugin-transform-object-assign": "^6.22.0",
  54. "babel-plugin-transform-proto-to-assign": "^6.26.0",
  55. "babel-plugin-transform-react-jsx": "^6.24.1",
  56. "babel-polyfill": "^6.26.0",
  57. "babel-preset-env": "^1.6.1",
  58. "babel-register": "^6.26.0",
  59. "babelify": "^8.0.0",
  60. "browser-sync": "^2.23.5",
  61. "browserify": "^15.1.0",
  62. "chai": "^4.1.2",
  63. "chalk": "1.1.3",
  64. "cssnano": "^3.10.0",
  65. "disc": "^1.3.3",
  66. "eslint": "^3.19.0",
  67. "eslint-config-standard": "^10.2.1",
  68. "eslint-config-standard-preact": "^1.1.6",
  69. "eslint-plugin-import": "^2.8.0",
  70. "eslint-plugin-jest": "^21.6.2",
  71. "eslint-plugin-node": "^4.2.3",
  72. "eslint-plugin-promise": "^3.6.0",
  73. "eslint-plugin-standard": "^3.0.1",
  74. "exorcist": "^1.0.0",
  75. "fakefile": "0.0.9",
  76. "github-contributors-list": "1.2.3",
  77. "glob": "^7.1.2",
  78. "isomorphic-fetch": "2.2.1",
  79. "jest": "^22.0.6",
  80. "json3": "^3.3.2",
  81. "lint-staged": "^6.0.0",
  82. "minify-stream": "^1.1.0",
  83. "mkdirp": "0.5.1",
  84. "multi-glob": "1.0.1",
  85. "next-update": "^3.6.0",
  86. "node-sass": "^4.9.0",
  87. "npm-run-all": "^4.1.2",
  88. "onchange": "^3.3.0",
  89. "postcss": "^6.0.16",
  90. "postcss-safe-important": "^1.1.0",
  91. "pre-commit": "^1.2.2",
  92. "redux": "^3.7.2",
  93. "replace-x": "^1.5.0",
  94. "sass": "0.5.0",
  95. "temp-write": "^3.4.0",
  96. "tinyify": "^2.4.0",
  97. "typescript": "^2.8.1",
  98. "uppy-server": "^0.11.2",
  99. "watchify": "^3.9.0",
  100. "wdio-mocha-framework": "^0.5.12",
  101. "wdio-sauce-service": "^0.4.6",
  102. "wdio-static-server-service": "^1.0.1",
  103. "webdriverio": "^4.10.1"
  104. },
  105. "dependencies": {
  106. "classnames": "^2.2.5",
  107. "cuid": "^2.0.2",
  108. "drag-drop": "2.13.2",
  109. "es6-promise": "^4.2.2",
  110. "get-form-data": "^2.0.0",
  111. "lodash.throttle": "4.1.1",
  112. "mime-match": "^1.0.2",
  113. "namespace-emitter": "^2.0.0",
  114. "preact": "^8.2.7",
  115. "prettier-bytes": "1.0.4",
  116. "prop-types": "^15.5.10",
  117. "resolve-url": "^0.2.1",
  118. "socket.io-client": "^2.0.4",
  119. "tus-js-client": "^1.4.5",
  120. "url-parse": "^1.2.0",
  121. "whatwg-fetch": "2.0.3"
  122. },
  123. "scripts": {
  124. "build:bundle": "node ./bin/build-js.js",
  125. "build:css": "node ./bin/build-css.js",
  126. "build:gzip": "node ./bin/gzip.js",
  127. "size": "echo 'JS Bundle mingz:' && cat ./dist/uppy.min.js | gzip | wc -c && echo 'CSS Bundle mingz:' && cat ./dist/uppy.min.css | gzip | wc -c",
  128. "build:js": "npm-run-all build:bundle build:lib",
  129. "build:lib": "babel --version && babel src --source-maps -d lib",
  130. "build": "npm-run-all --parallel build:js build:css --serial build:gzip size",
  131. "clean": "rm -rf lib && rm -rf dist",
  132. "lint:fix": "eslint src test website/build-examples.js website/update.js website/themes/uppy/source/js/common.js --fix",
  133. "lint": "eslint src test website/build-examples.js website/update.js website/themes/uppy/source/js/common.js",
  134. "lint-staged": "lint-staged",
  135. "release:major": "env SEMANTIC=major npm run release",
  136. "release:minor": "env SEMANTIC=minor npm run release",
  137. "release:patch": "env SEMANTIC=patch npm run release",
  138. "replace:versions": "replace-x -r 'uppy/v\\d+\\.\\d+\\.\\d+/dist' \"uppy/v$npm_package_version/dist\" ./examples/ README.md bin/upload-to-cdn.sh website/src/examples/ website/src/docs/ website/themes/uppy/layout/ --exclude=node_modules",
  139. "replace:versions:commit": "git commit -m \"Change Uppy version references to v$npm_package_version\" ./examples/ README.md bin/upload-to-cdn.sh website/src/examples/ website/src/docs/ website/themes/uppy/layout/",
  140. "release": "npm version ${SEMANTIC:-patch} -m \"Release %s\" && npm run replace:versions && npm run replace:versions:commit && git push && git push --tags && npm publish",
  141. "start:server": "node bin/start-server",
  142. "start": "npm-run-all --parallel watch start:server web:preview",
  143. "test:acceptance": "./bin/endtoend-build && wdio test/endtoend/wdio.remote.conf.js",
  144. "test:acceptance:local": "./bin/endtoend-build && wdio test/endtoend/wdio.local.conf.js",
  145. "test:unit": "jest --testPathPattern=./src --coverage",
  146. "test:type": "tsc -p .",
  147. "test": "npm run lint && npm run test:unit",
  148. "test:watch": "jest --watch --testPathPattern=src",
  149. "travis:deletecache": "travis cache --delete",
  150. "watch:css": "onchange 'src/scss/**/*.scss' --initial --verbose -- npm run build:css",
  151. "watch:js": "onchange 'src/**/*.js' --initial --verbose -- npm run build:bundle",
  152. "watch": "npm-run-all --parallel watch:js watch:css",
  153. "watch:fast": "npm-run-all --parallel watch:css web:preview",
  154. "watch:example:browsersync": "browser-sync start --server examples/bundled-example --port 3452 --serveStatic dist --files \"examples/bundled-example/bundle.js, dist/uppy.min.css\"",
  155. "watch:example:js": "watchify -t babelify examples/bundled-example/main.js -o examples/bundled-example/bundle.js -vd",
  156. "watch:example": "npm-run-all --parallel watch:example:js watch:css watch:example:browsersync",
  157. "dev": "npm-run-all --parallel watch:example:js watch:css watch:example:browsersync",
  158. "web:build": "cd website && node update.js && ./node_modules/.bin/hexo generate --silent && node build-examples.js",
  159. "web:clean": "cd website && ./node_modules/.bin/hexo clean",
  160. "web:deploy": "npm-run-all web:install web:disc web:build && ./bin/web-deploy",
  161. "web:generated-docs": "cd website && node node_modules/documentation/bin/documentation.js readme ../src/index.js --readme-file=src/docs/api.md --section 'Uppy Core & Plugins' -q --github -c doc-order.json",
  162. "web:disc": "node ./bin/disc.js",
  163. "web:install": "cd website && npm install",
  164. "web:bundle:update:watch": "onchange 'dist/**/*.css' 'dist/**/*.js' --initial --verbose -- node website/update.js",
  165. "web:examples:watch": "cd website && node build-examples.js watch",
  166. "web:serve": "cd website && ./node_modules/.bin/hexo server",
  167. "web:preview": "npm-run-all --parallel web:examples:watch web:bundle:update:watch web:serve",
  168. "web:update:frontpage:code:sample": "cd website && ./node_modules/.bin/hexo generate && cp -f public/frontpage-code-sample.html ./themes/uppy/layout/partials/frontpage-code-sample.html",
  169. "web": "npm-run-all web:clean web:build",
  170. "uploadcdn": "bin/upload-to-cdn.sh",
  171. "prepublishOnly": "npm-run-all clean build",
  172. "contributors": "githubcontrib --owner transloadit --repo uppy --cols 6 $([ \"${GITHUB_TOKEN:-}\" == \"\" ] && echo \"\" || echo \"--authToken ${GITHUB_TOKEN}\") --showlogin true --sortOrder desc",
  173. "contributors:save": "replace-x -m '<!--contributors-->[\\s\\S]+<!--/contributors-->' \"<!--contributors-->\n## Contributors\n\n$(npm run --silent contributors)\n<!--/contributors-->\" README.md"
  174. }
  175. }