package.json 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. {
  2. "private": true,
  3. "name": "@uppy-dev/build",
  4. "version": "0.0.0",
  5. "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:",
  6. "lint-staged": {
  7. "*.{js,mjs,cjs,jsx}": "eslint --fix",
  8. "*.{ts,mts,cts,tsx}": [
  9. "eslint --fix",
  10. "prettier -w",
  11. "eslint"
  12. ],
  13. "*.{css,html,json,scss,vue,yaml,yml}": "prettier -w",
  14. "*.md": [
  15. "remark --silently-ignore -i .remarkignore -foq",
  16. "eslint --fix",
  17. "prettier -w",
  18. "eslint"
  19. ],
  20. "*.mdx": [
  21. "prettier -w"
  22. ]
  23. },
  24. "remarkConfig": {
  25. "plugins": [
  26. "@uppy-dev/remark-lint-uppy"
  27. ]
  28. },
  29. "pre-commit": "lint:staged",
  30. "license": "MIT",
  31. "engines": {
  32. "node": "^16.15.0 || >=18.0.0",
  33. "yarn": "3.6.1"
  34. },
  35. "packageManager": "yarn@4.4.1+sha224.fd21d9eb5fba020083811af1d4953acc21eeb9f6ff97efd1b3f9d4de",
  36. "workspaces": [
  37. "examples/*",
  38. "packages/@uppy/*",
  39. "packages/@uppy/angular/projects/uppy/*",
  40. "packages/uppy",
  41. "private/*",
  42. "test/endtoend",
  43. "e2e"
  44. ],
  45. "devDependencies": {
  46. "@babel/cli": "^7.14.5",
  47. "@babel/core": "^7.14.6",
  48. "@babel/eslint-parser": "^7.11.3",
  49. "@babel/eslint-plugin": "^7.11.3",
  50. "@babel/plugin-proposal-nullish-coalescing-operator": "^7.14.5",
  51. "@babel/plugin-proposal-optional-chaining": "^7.16.0",
  52. "@babel/plugin-transform-modules-commonjs": "^7.16.8",
  53. "@babel/plugin-transform-react-jsx": "^7.10.4",
  54. "@babel/plugin-transform-typescript": "^7.22.10",
  55. "@babel/preset-env": "^7.14.7",
  56. "@babel/register": "^7.10.5",
  57. "@babel/types": "^7.17.0",
  58. "@types/jasmine": "file:./private/@types/jasmine",
  59. "@types/jasminewd2": "file:./private/@types/jasmine",
  60. "@typescript-eslint/eslint-plugin": "^7.0.0",
  61. "@typescript-eslint/parser": "^7.0.0",
  62. "@uppy-dev/remark-lint-uppy": "workspace:*",
  63. "autoprefixer": "^10.2.6",
  64. "babel-plugin-inline-package-json": "^2.0.0",
  65. "chalk": "^5.0.0",
  66. "cssnano": "^7.0.0",
  67. "dotenv": "^16.0.0",
  68. "esbuild": "^0.21.2",
  69. "esbuild-plugin-babel": "^0.2.3",
  70. "eslint": "^8.0.0",
  71. "eslint-config-prettier": "^9.0.0",
  72. "eslint-config-transloadit": "^2.0.0",
  73. "eslint-plugin-compat": "^4.0.0",
  74. "eslint-plugin-cypress": "^3.0.0",
  75. "eslint-plugin-import": "^2.25.2",
  76. "eslint-plugin-jest": "^28.0.0",
  77. "eslint-plugin-jsdoc": "^48.0.0",
  78. "eslint-plugin-jsx-a11y": "^6.4.1",
  79. "eslint-plugin-markdown": "^5.0.0",
  80. "eslint-plugin-no-only-tests": "^3.1.0",
  81. "eslint-plugin-node": "^11.1.0",
  82. "eslint-plugin-prefer-import": "^0.0.1",
  83. "eslint-plugin-promise": "^6.0.0",
  84. "eslint-plugin-react": "^7.22.0",
  85. "eslint-plugin-react-hooks": "^4.2.0",
  86. "eslint-plugin-unicorn": "^53.0.0",
  87. "execa": "^9.5.1",
  88. "github-contributors-list": "^1.2.4",
  89. "glob": "^8.0.0",
  90. "jsdom": "^24.0.0",
  91. "lint-staged": "^15.0.0",
  92. "npm-run-all": "^4.1.5",
  93. "onchange": "^7.1.0",
  94. "postcss": "^8.4.31",
  95. "postcss-dir-pseudo-class": "^6.0.0",
  96. "postcss-logical": "^5.0.0",
  97. "pre-commit": "^1.2.2",
  98. "prettier": "^3.0.3",
  99. "remark-cli": "^12.0.0",
  100. "resolve": "^1.17.0",
  101. "sass": "^1.29.0",
  102. "start-server-and-test": "^1.14.0",
  103. "stylelint": "^15.0.0",
  104. "stylelint-config-rational-order": "^0.1.2",
  105. "stylelint-config-standard": "^36.0.0",
  106. "stylelint-config-standard-scss": "^13.0.0",
  107. "typescript": "~5.4",
  108. "vitest": "^1.2.1",
  109. "vue-template-compiler": "workspace:*"
  110. },
  111. "scripts": {
  112. "start:companion": "bash bin/companion.sh",
  113. "start:companion:with-loadbalancer": "e2e/start-companion-with-load-balancer.mjs",
  114. "build:bundle": "yarn node ./bin/build-bundle.mjs",
  115. "build:clean": "cp .gitignore .gitignore.bak && printf '!node_modules\n!**/node_modules/**/*\n' >> .gitignore; git clean -Xfd packages e2e .parcel-cache coverage; mv .gitignore.bak .gitignore",
  116. "build:companion": "yarn workspace @uppy/companion build",
  117. "build:css": "yarn node ./bin/build-css.js",
  118. "build:svelte": "yarn workspace @uppy/svelte build",
  119. "build:angular": "yarn workspace angular build",
  120. "build:js:typeless": "npm-run-all build:lib build:companion build:svelte",
  121. "build:js": "npm-run-all build:js:typeless build:locale-pack build:angular build:bundle",
  122. "build:ts": "yarn tsc -b && yarn workspace @uppy/svelte check",
  123. "build:lib": "yarn node ./bin/build-lib.mjs",
  124. "build:locale-pack": "yarn workspace @uppy-dev/locale-pack build && eslint packages/@uppy/locales/src/en_US.ts --fix && yarn workspace @uppy-dev/locale-pack test unused",
  125. "build": "npm-run-all --serial build:ts --parallel build:js build:css --serial size",
  126. "contributors:save": "yarn node ./bin/update-contributors.mjs",
  127. "dev:with-companion": "npm-run-all --parallel start:companion dev",
  128. "dev": "yarn workspace @uppy-dev/dev dev",
  129. "lint:fix": "yarn lint --fix",
  130. "lint:markdown": "remark -f -q -i .remarkignore . .github/CONTRIBUTING.md",
  131. "lint:staged": "lint-staged",
  132. "lint:css": "stylelint ./packages/**/*.scss",
  133. "lint:css:fix": "stylelint ./packages/**/*.scss --fix",
  134. "lint": "eslint . --cache",
  135. "format:show-diff": "git diff --quiet || (echo 'Unable to show a diff because there are unstaged changes'; false) && (prettier . -w --loglevel silent && git --no-pager diff; git restore .)",
  136. "format:check": "prettier -c .",
  137. "format:check-diff": "yarn format:check || (yarn format:show-diff && false)",
  138. "format": "prettier -w .",
  139. "release": "PACKAGES=$(yarn workspaces list --json) yarn workspace @uppy-dev/release interactive",
  140. "size": "echo 'JS Bundle mingz:' && cat ./packages/uppy/dist/uppy.min.js | gzip | wc -c && echo 'CSS Bundle mingz:' && cat ./packages/uppy/dist/uppy.min.css | gzip | wc -c",
  141. "e2e": "yarn build:clean && yarn build && yarn e2e:skip-build",
  142. "e2e:skip-build": "npm-run-all --parallel watch:js:lib e2e:client start:companion:with-loadbalancer e2e:cypress",
  143. "e2e:ci": "start-server-and-test 'npm-run-all --parallel e2e:client start:companion:with-loadbalancer' '1234|3020' e2e:headless",
  144. "e2e:client": "yarn workspace e2e client:start",
  145. "e2e:cypress": "yarn workspace e2e cypress:open",
  146. "e2e:headless": "yarn workspace e2e cypress:headless",
  147. "e2e:generate": "yarn workspace e2e generate-test",
  148. "test:companion": "yarn workspace @uppy/companion test",
  149. "test:companion:watch": "yarn workspace @uppy/companion test --watch",
  150. "test:locale-packs": "yarn locale-packs:unused && yarn locale-packs:warnings",
  151. "test:locale-packs:unused": "yarn workspace @uppy-dev/locale-pack test unused",
  152. "test:locale-packs:warnings": "yarn workspace @uppy-dev/locale-pack test warnings",
  153. "test:unit": "yarn run build:lib && yarn test:watch --run",
  154. "test:watch": "vitest --environment jsdom --dir packages/@uppy",
  155. "test": "npm-run-all lint test:locale-packs:unused test:unit test:companion",
  156. "uploadcdn": "yarn node ./private/upload-to-cdn/index.js",
  157. "version": "yarn node ./bin/after-version-bump.js",
  158. "watch:css": "onchange 'packages/{@uppy/,}*/src/*.scss' --initial --verbose -- yarn run build:css",
  159. "watch:js:bundle": "onchange 'packages/{@uppy/,}*/src/**/*.{js,ts,jsx,tsx}' --initial --verbose -- yarn run build:bundle",
  160. "watch:js:lib": "onchange 'packages/{@uppy/,}*/src/**/*.{js,ts,jsx,tsx}' --initial --verbose -- yarn run build:lib",
  161. "watch:js": "npm-run-all --parallel watch:js:bundle watch:js:lib",
  162. "watch": "npm-run-all --parallel watch:css watch:js"
  163. },
  164. "alias": {
  165. "preact/jsx-dev-runtime": "preact/jsx-runtime"
  166. },
  167. "resolutions": {
  168. "@types/eslint@^7.2.13": "^8.2.0",
  169. "@types/react": "^18",
  170. "@types/webpack-dev-server": "^4",
  171. "@vitest/utils": "patch:@vitest/utils@npm%3A1.2.1#./.yarn/patches/@vitest-utils-npm-1.2.1-3028846845.patch",
  172. "p-queue": "patch:p-queue@npm%3A8.0.1#~/.yarn/patches/p-queue-npm-8.0.1-fe1ddcd827.patch",
  173. "pre-commit": "patch:pre-commit@npm:1.2.2#.yarn/patches/pre-commit-npm-1.2.2-f30af83877.patch",
  174. "preact": "patch:preact@npm:10.10.0#.yarn/patches/preact-npm-10.10.0-dd04de05e8.patch",
  175. "start-server-and-test": "patch:start-server-and-test@npm:1.14.0#.yarn/patches/start-server-and-test-npm-1.14.0-841aa34fdf.patch",
  176. "stylelint@^9.10.1": "^16.0.0",
  177. "stylelint-order": "^6.0.0",
  178. "uuid@^8.3.2": "patch:uuid@npm:8.3.2#.yarn/patches/uuid-npm-8.3.2-eca0baba53.patch",
  179. "resize-observer-polyfill": "patch:resize-observer-polyfill@npm%3A1.5.1#./.yarn/patches/resize-observer-polyfill-npm-1.5.1-603120e8a0.patch"
  180. }
  181. }