package.json 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. {
  2. "name": "element-web",
  3. "version": "1.11.66",
  4. "description": "A feature-rich client for Matrix.org",
  5. "author": "New Vector Ltd.",
  6. "repository": {
  7. "type": "git",
  8. "url": "https://github.com/element-hq/element-web"
  9. },
  10. "license": "Apache-2.0",
  11. "files": [
  12. "lib",
  13. "res",
  14. "src",
  15. "webpack.config.js",
  16. "scripts",
  17. "docs",
  18. "release.sh",
  19. "deploy",
  20. "CHANGELOG.md",
  21. "CONTRIBUTING.rst",
  22. "LICENSE",
  23. "README.md",
  24. "AUTHORS.rst",
  25. "package.json",
  26. "contribute.json"
  27. ],
  28. "style": "bundle.css",
  29. "matrix_i18n_extra_translation_funcs": [
  30. "UserFriendlyError"
  31. ],
  32. "scripts": {
  33. "i18n": "matrix-gen-i18n && yarn i18n:sort && yarn i18n:lint",
  34. "i18n:sort": "jq --sort-keys '.' src/i18n/strings/en_EN.json > src/i18n/strings/en_EN.json.tmp && mv src/i18n/strings/en_EN.json.tmp src/i18n/strings/en_EN.json",
  35. "i18n:lint": "prettier --log-level=silent --write src/i18n/strings/ --ignore-path /dev/null",
  36. "i18n:diff": "cp src/i18n/strings/en_EN.json src/i18n/strings/en_EN_orig.json && yarn i18n && matrix-compare-i18n-files src/i18n/strings/en_EN_orig.json src/i18n/strings/en_EN.json",
  37. "clean": "rimraf lib webapp",
  38. "build": "yarn clean && yarn build:genfiles && yarn build:bundle",
  39. "build-stats": "yarn clean && yarn build:genfiles && yarn build:bundle-stats",
  40. "build:res": "ts-node scripts/copy-res.ts",
  41. "build:genfiles": "yarn build:res && yarn build:module_system",
  42. "build:modernizr": "modernizr -c .modernizr.json -d src/vector/modernizr.js",
  43. "build:bundle": "webpack --progress --mode production",
  44. "build:bundle-stats": "webpack --progress --mode production --json > webpack-stats.json",
  45. "build:module_system": "ts-node --project ./tsconfig.module_system.json module_system/scripts/install.ts",
  46. "dist": "scripts/package.sh",
  47. "start": "concurrently --kill-others-on-fail --prefix \"{time} [{name}]\" -n modules,res \"yarn build:module_system\" \"yarn build:res\" && concurrently --kill-others-on-fail --prefix \"{time} [{name}]\" -n res,element-js \"yarn start:res\" \"yarn start:js\"",
  48. "start:https": "concurrently --kill-others-on-fail --prefix \"{time} [{name}]\" -n res,element-js \"yarn start:res\" \"yarn start:js --https\"",
  49. "start:res": "ts-node scripts/copy-res.ts -w",
  50. "start:js": "webpack serve --output-path webapp --output-filename=bundles/_dev_/[name].js --output-chunk-filename=bundles/_dev_/[name].js --mode development",
  51. "lint": "yarn lint:types && yarn lint:js && yarn lint:style && yarn lint:workflows",
  52. "lint:js": "yarn lint:js:src && yarn lint:js:module_system",
  53. "lint:js:src": "eslint --max-warnings 0 src test && prettier --check .",
  54. "lint:js:module_system": "eslint --max-warnings 0 --config .eslintrc-module_system.js module_system",
  55. "lint:js-fix": "yarn lint:js-fix:src && yarn lint:js-fix:module_system",
  56. "lint:js-fix:src": "prettier --log-level=warn --write . && eslint --fix src test",
  57. "lint:js-fix:module_system": "eslint --fix --config .eslintrc-module_system.js module_system",
  58. "lint:types": "yarn lint:types:src && yarn lint:types:module_system",
  59. "lint:types:src": "tsc --noEmit --jsx react",
  60. "lint:types:module_system": "tsc --noEmit --project ./tsconfig.module_system.json",
  61. "lint:style": "stylelint \"res/css/**/*.pcss\"",
  62. "lint:workflows": "find .github/workflows -type f \\( -iname '*.yaml' -o -iname '*.yml' \\) | xargs -I {} sh -c 'echo \"Linting {}\"; action-validator \"{}\"'",
  63. "test": "jest",
  64. "coverage": "yarn test --coverage",
  65. "analyse:unused-exports": "ts-node ./scripts/analyse_unused_exports.ts",
  66. "analyse:webpack-bundles": "webpack-bundle-analyzer webpack-stats.json webapp",
  67. "update:jitsi": "curl -s https://meet.element.io/libs/external_api.min.js > ./res/jitsi_external_api.min.js"
  68. },
  69. "resolutions": {
  70. "@types/react-dom": "17.0.25",
  71. "@types/react": "17.0.80"
  72. },
  73. "dependencies": {
  74. "@matrix-org/olm": "3.2.15",
  75. "@matrix-org/react-sdk-module-api": "^2.3.0",
  76. "gfm.css": "^1.1.2",
  77. "jsrsasign": "^11.0.0",
  78. "katex": "^0.16.0",
  79. "lodash": "^4.17.21",
  80. "matrix-js-sdk": "github:matrix-org/matrix-js-sdk#develop",
  81. "matrix-react-sdk": "github:matrix-org/matrix-react-sdk#develop",
  82. "matrix-widget-api": "^1.3.1",
  83. "react": "17.0.2",
  84. "react-dom": "17.0.2",
  85. "ua-parser-js": "^1.0.0"
  86. },
  87. "devDependencies": {
  88. "@action-validator/cli": "^0.6.0",
  89. "@action-validator/core": "^0.6.0",
  90. "@babel/core": "^7.12.10",
  91. "@babel/eslint-parser": "^7.12.10",
  92. "@babel/eslint-plugin": "^7.12.10",
  93. "@babel/plugin-proposal-class-properties": "^7.12.1",
  94. "@babel/plugin-proposal-export-default-from": "^7.12.1",
  95. "@babel/plugin-proposal-logical-assignment-operators": "^7.20.7",
  96. "@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1",
  97. "@babel/plugin-proposal-numeric-separator": "^7.12.7",
  98. "@babel/plugin-proposal-object-rest-spread": "^7.12.1",
  99. "@babel/plugin-proposal-optional-chaining": "^7.12.7",
  100. "@babel/plugin-syntax-dynamic-import": "^7.8.3",
  101. "@babel/plugin-transform-runtime": "^7.12.10",
  102. "@babel/preset-env": "^7.12.11",
  103. "@babel/preset-react": "^7.12.10",
  104. "@babel/preset-typescript": "^7.12.7",
  105. "@babel/register": "^7.12.10",
  106. "@babel/runtime": "^7.12.5",
  107. "@casualbot/jest-sonar-reporter": "2.2.7",
  108. "@principalstudio/html-webpack-inject-preload": "^1.2.7",
  109. "@sentry/webpack-plugin": "^2.7.1",
  110. "@svgr/webpack": "^8.0.0",
  111. "@testing-library/react": "^12.1.5",
  112. "@types/commonmark": "^0.27.9",
  113. "@types/content-type": "^1.1.8",
  114. "@types/counterpart": "^0.18.4",
  115. "@types/diff-match-patch": "^1.0.36",
  116. "@types/escape-html": "^1.0.4",
  117. "@types/file-saver": "^2.0.7",
  118. "@types/glob-to-regexp": "^0.4.4",
  119. "@types/jest": "^29.0.0",
  120. "@types/jitsi-meet": "^2.0.2",
  121. "@types/jsrsasign": "^10.5.4",
  122. "@types/katex": "^0.16.7",
  123. "@types/lodash": "^4.14.197",
  124. "@types/minimist": "^1.2.5",
  125. "@types/modernizr": "^3.5.6",
  126. "@types/node": "^16",
  127. "@types/node-fetch": "^2.6.4",
  128. "@types/pako": "^2.0.3",
  129. "@types/qrcode": "^1.5.5",
  130. "@types/react": "17.0.80",
  131. "@types/react-beautiful-dnd": "^13.1.7",
  132. "@types/react-dom": "17.0.25",
  133. "@types/react-transition-group": "^4.4.9",
  134. "@types/sanitize-html": "^2.9.5",
  135. "@types/sdp-transform": "^2.4.9",
  136. "@types/tar-js": "^0.3.5",
  137. "@types/ua-parser-js": "^0.7.36",
  138. "@types/uuid": "^9.0.7",
  139. "@typescript-eslint/eslint-plugin": "^7.0.0",
  140. "@typescript-eslint/parser": "^7.0.0",
  141. "babel-jest": "^29.0.0",
  142. "babel-loader": "^9.0.0",
  143. "babel-plugin-jsx-remove-data-test-id": "^3.0.0",
  144. "buffer": "^6.0.3",
  145. "chokidar": "^3.5.1",
  146. "concurrently": "^8.0.0",
  147. "copy-webpack-plugin": "^12.0.0",
  148. "cronstrue": "^2.41.0",
  149. "css-loader": "^7.0.0",
  150. "css-minimizer-webpack-plugin": "^6.0.0",
  151. "dotenv": "^16.0.2",
  152. "eslint": "8.57.0",
  153. "eslint-config-google": "^0.14.0",
  154. "eslint-config-prettier": "^9.0.0",
  155. "eslint-plugin-deprecate": "0.8.4",
  156. "eslint-plugin-import": "^2.26.0",
  157. "eslint-plugin-matrix-org": "^1.0.0",
  158. "eslint-plugin-react": "^7.28.0",
  159. "eslint-plugin-react-hooks": "^4.3.0",
  160. "eslint-plugin-unicorn": "^52.0.0",
  161. "fake-indexeddb": "^5.0.0",
  162. "fetch-mock": "9.11.0",
  163. "fetch-mock-jest": "^1.5.1",
  164. "file-loader": "^6.0.0",
  165. "html-webpack-plugin": "^5.5.3",
  166. "jest": "^29.0.0",
  167. "jest-canvas-mock": "2.5.2",
  168. "jest-environment-jsdom": "^29.0.0",
  169. "jest-mock": "^29.0.0",
  170. "jest-raw-loader": "^1.0.1",
  171. "matrix-mock-request": "^2.5.0",
  172. "matrix-web-i18n": "^3.2.1",
  173. "mini-css-extract-plugin": "2.8.0",
  174. "minimist": "^1.2.6",
  175. "mkdirp": "^3.0.0",
  176. "modernizr": "^3.12.0",
  177. "node-fetch": "^2.6.7",
  178. "postcss": "8.4.33",
  179. "postcss-easings": "^4.0.0",
  180. "postcss-hexrgba": "2.1.0",
  181. "postcss-import": "16.0.0",
  182. "postcss-loader": "8.1.0",
  183. "postcss-mixins": "^10.0.0",
  184. "postcss-nested": "^6.0.0",
  185. "postcss-preset-env": "^9.3.0",
  186. "postcss-scss": "^4.0.4",
  187. "postcss-simple-vars": "^7.0.1",
  188. "prettier": "3.2.5",
  189. "process": "^0.11.10",
  190. "raw-loader": "^4.0.2",
  191. "rimraf": "^5.0.0",
  192. "semver": "^7.5.2",
  193. "setimmediate": "^1.0.5",
  194. "string-replace-loader": "3",
  195. "style-loader": "4",
  196. "stylelint": "^16.1.0",
  197. "stylelint-config-standard": "^36.0.0",
  198. "stylelint-scss": "^6.0.0",
  199. "terser-webpack-plugin": "^5.3.9",
  200. "ts-node": "^10.9.1",
  201. "ts-prune": "^0.10.3",
  202. "typescript": "5.4.5",
  203. "util": "^0.12.5",
  204. "webpack": "^5.89.0",
  205. "webpack-bundle-analyzer": "^4.8.0",
  206. "webpack-cli": "^5.0.0",
  207. "webpack-dev-server": "^5.0.0",
  208. "yaml": "^2.3.3"
  209. },
  210. "@casualbot/jest-sonar-reporter": {
  211. "outputDirectory": "coverage",
  212. "outputName": "jest-sonar-report.xml",
  213. "relativePaths": true
  214. }
  215. }