package.json 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. {
  2. "name": "@mastodon/mastodon",
  3. "license": "AGPL-3.0-or-later",
  4. "engines": {
  5. "node": ">=16"
  6. },
  7. "scripts": {
  8. "build:development": "cross-env RAILS_ENV=development NODE_ENV=development ./bin/webpack",
  9. "build:production": "cross-env RAILS_ENV=production NODE_ENV=production ./bin/webpack",
  10. "fix:js": "yarn lint:js --fix",
  11. "fix:json": "prettier --write \"**/*.{json,json5}\"",
  12. "fix:md": "prettier --write \"**/*.md\"",
  13. "fix:sass": "stylelint --fix \"**/*.{css,scss}\" && prettier --write \"**/*.{css,scss}\"",
  14. "fix:yml": "prettier --write \"**/*.{yaml,yml}\"",
  15. "fix": "yarn fix:js && yarn fix:json && yarn fix:sass && yarn fix:yml",
  16. "i18n:extract": "formatjs extract 'app/javascript/**/*.{js,jsx,ts,tsx}' '--ignore=**/*.d.ts' --out-file app/javascript/mastodon/locales/en.json --format config/formatjs-formatter.js",
  17. "jest": "cross-env NODE_ENV=test jest",
  18. "lint:js": "eslint . --ext=.js,.jsx,.ts,.tsx --cache --report-unused-disable-directives",
  19. "lint:json": "prettier --check \"**/*.{json,json5}\"",
  20. "lint:md": "prettier --check \"**/*.md\"",
  21. "lint:sass": "stylelint \"**/*.{css,scss}\" && prettier --check \"**/*.{css,scss}\"",
  22. "lint:yml": "prettier --check \"**/*.{yaml,yml}\"",
  23. "lint": "yarn lint:js && yarn lint:json && yarn lint:sass && yarn lint:yml",
  24. "postversion": "git push --tags",
  25. "prepare": "husky install",
  26. "start": "node ./streaming/index.js",
  27. "test": "yarn lint && yarn run typecheck && yarn jest",
  28. "typecheck": "tsc --noEmit"
  29. },
  30. "repository": {
  31. "type": "git",
  32. "url": "https://github.com/mastodon/mastodon.git"
  33. },
  34. "private": true,
  35. "dependencies": {
  36. "@babel/core": "^7.22.1",
  37. "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.3",
  38. "@babel/plugin-transform-react-inline-elements": "^7.21.0",
  39. "@babel/plugin-transform-runtime": "^7.22.4",
  40. "@babel/preset-env": "^7.22.4",
  41. "@babel/preset-react": "^7.22.3",
  42. "@babel/preset-typescript": "^7.21.5",
  43. "@babel/runtime": "^7.22.3",
  44. "@formatjs/intl-pluralrules": "^5.2.2",
  45. "@gamestdio/websocket": "^0.3.2",
  46. "@github/webauthn-json": "^2.1.1",
  47. "@material-design-icons/svg": "^0.14.10",
  48. "@rails/ujs": "^7.0.6",
  49. "@reduxjs/toolkit": "^1.9.5",
  50. "@renchap/compression-webpack-plugin": "^6.1.4",
  51. "@svgr/webpack": "^5.5.0",
  52. "abortcontroller-polyfill": "^1.7.5",
  53. "arrow-key-navigation": "^1.2.0",
  54. "async-mutex": "^0.4.0",
  55. "autoprefixer": "^10.4.14",
  56. "axios": "^1.4.0",
  57. "babel-loader": "^8.3.0",
  58. "babel-plugin-formatjs": "^10.5.1",
  59. "babel-plugin-lodash": "^3.3.4",
  60. "babel-plugin-preval": "^5.1.0",
  61. "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
  62. "blurhash": "^2.0.5",
  63. "circular-dependency-plugin": "^5.2.2",
  64. "classnames": "^2.3.2",
  65. "cocoon-js-vanilla": "^1.3.0",
  66. "color-blend": "^4.0.0",
  67. "core-js": "^3.30.2",
  68. "cross-env": "^7.0.3",
  69. "css-loader": "^5.2.7",
  70. "cssnano": "^6.0.1",
  71. "detect-passive-events": "^2.0.3",
  72. "dotenv": "^16.0.3",
  73. "emoji-mart": "npm:emoji-mart-lazyload@latest",
  74. "escape-html": "^1.0.3",
  75. "express": "^4.18.2",
  76. "file-loader": "^6.2.0",
  77. "font-awesome": "^4.7.0",
  78. "fuzzysort": "^2.0.4",
  79. "glob": "^10.2.6",
  80. "history": "^4.10.1",
  81. "http-link-header": "^1.1.1",
  82. "immutable": "^4.3.0",
  83. "imports-loader": "^1.2.0",
  84. "intl-messageformat": "^10.3.5",
  85. "ioredis": "^5.3.2",
  86. "js-yaml": "^4.1.0",
  87. "jsdom": "^22.1.0",
  88. "lodash": "^4.17.21",
  89. "mark-loader": "^0.1.6",
  90. "marky": "^1.2.5",
  91. "mini-css-extract-plugin": "^1.6.2",
  92. "mkdirp": "^3.0.1",
  93. "npmlog": "^7.0.1",
  94. "path-complete-extname": "^1.0.0",
  95. "pg": "^8.5.0",
  96. "pg-connection-string": "^2.6.0",
  97. "postcss": "^8.4.24",
  98. "postcss-loader": "^4.3.0",
  99. "prom-client": "^14.2.0",
  100. "prop-types": "^15.8.1",
  101. "punycode": "^2.3.0",
  102. "react": "^18.2.0",
  103. "react-dom": "^18.2.0",
  104. "react-helmet": "^6.1.0",
  105. "react-hotkeys": "^1.1.4",
  106. "react-immutable-proptypes": "^2.2.0",
  107. "react-immutable-pure-component": "^2.2.2",
  108. "react-intl": "^6.4.2",
  109. "react-motion": "^0.5.2",
  110. "react-notification": "^6.8.5",
  111. "react-overlays": "^5.2.1",
  112. "react-redux": "^8.0.4",
  113. "react-redux-loading-bar": "^5.0.4",
  114. "react-router": "^4.3.1",
  115. "react-router-dom": "^4.1.1",
  116. "react-router-scroll-4": "^1.0.0-beta.1",
  117. "react-select": "^5.7.3",
  118. "react-sparklines": "^1.7.0",
  119. "react-swipeable-views": "^0.14.0",
  120. "react-textarea-autosize": "^8.4.1",
  121. "react-toggle": "^4.1.3",
  122. "redux": "^4.2.1",
  123. "redux-immutable": "^4.0.0",
  124. "redux-thunk": "^2.4.2",
  125. "regenerator-runtime": "^0.14.0",
  126. "requestidlecallback": "^0.3.0",
  127. "reselect": "^4.1.8",
  128. "rimraf": "^5.0.1",
  129. "sass": "^1.62.1",
  130. "sass-loader": "^10.2.0",
  131. "stacktrace-js": "^2.0.2",
  132. "stringz": "^2.1.0",
  133. "substring-trie": "^1.0.2",
  134. "terser-webpack-plugin": "^4.2.3",
  135. "tesseract.js": "^2.1.5",
  136. "tiny-queue": "^0.2.1",
  137. "twitter-text": "3.1.0",
  138. "uuid": "^9.0.0",
  139. "webpack": "^4.47.0",
  140. "webpack-assets-manifest": "^4.0.6",
  141. "webpack-bundle-analyzer": "^4.8.0",
  142. "webpack-cli": "^3.3.12",
  143. "webpack-merge": "^5.9.0",
  144. "wicg-inert": "^3.1.2",
  145. "workbox-expiration": "^7.0.0",
  146. "workbox-precaching": "^7.0.0",
  147. "workbox-routing": "^7.0.0",
  148. "workbox-strategies": "^7.0.0",
  149. "workbox-webpack-plugin": "^7.0.0",
  150. "workbox-window": "^7.0.0",
  151. "ws": "^8.12.1"
  152. },
  153. "devDependencies": {
  154. "@formatjs/cli": "^6.1.1",
  155. "@testing-library/jest-dom": "^6.0.0",
  156. "@testing-library/react": "^14.0.0",
  157. "@types/babel__core": "^7.20.1",
  158. "@types/emoji-mart": "^3.0.9",
  159. "@types/escape-html": "^1.0.2",
  160. "@types/express": "^4.17.17",
  161. "@types/http-link-header": "^1.0.3",
  162. "@types/intl": "^1.2.0",
  163. "@types/jest": "^29.5.2",
  164. "@types/js-yaml": "^4.0.5",
  165. "@types/lodash": "^4.14.195",
  166. "@types/npmlog": "^4.1.4",
  167. "@types/object-assign": "^4.0.30",
  168. "@types/pg": "^8.6.6",
  169. "@types/prop-types": "^15.7.5",
  170. "@types/punycode": "^2.1.0",
  171. "@types/react": "^18.2.7",
  172. "@types/react-dom": "^18.2.4",
  173. "@types/react-helmet": "^6.1.6",
  174. "@types/react-immutable-proptypes": "^2.1.0",
  175. "@types/react-motion": "^0.0.34",
  176. "@types/react-overlays": "^3.1.0",
  177. "@types/react-router-dom": "^5.3.3",
  178. "@types/react-select": "^5.0.1",
  179. "@types/react-sparklines": "^1.7.2",
  180. "@types/react-swipeable-views": "^0.13.1",
  181. "@types/react-test-renderer": "^18.0.0",
  182. "@types/react-textarea-autosize": "^8.0.0",
  183. "@types/react-toggle": "^4.0.3",
  184. "@types/redux-immutable": "^4.0.3",
  185. "@types/requestidlecallback": "^0.3.5",
  186. "@types/uuid": "^9.0.0",
  187. "@types/webpack": "^4.41.33",
  188. "@types/yargs": "^17.0.24",
  189. "@typescript-eslint/eslint-plugin": "^6.0.0",
  190. "@typescript-eslint/parser": "^6.0.0",
  191. "babel-jest": "^29.5.0",
  192. "eslint": "^8.41.0",
  193. "eslint-config-prettier": "^9.0.0",
  194. "eslint-import-resolver-typescript": "^3.5.5",
  195. "eslint-plugin-formatjs": "^4.10.1",
  196. "eslint-plugin-import": "~2.28.0",
  197. "eslint-plugin-jsdoc": "^46.1.0",
  198. "eslint-plugin-jsx-a11y": "~6.7.1",
  199. "eslint-plugin-prettier": "^5.0.0",
  200. "eslint-plugin-promise": "~6.1.1",
  201. "eslint-plugin-react": "~7.33.0",
  202. "eslint-plugin-react-hooks": "^4.6.0",
  203. "husky": "^8.0.3",
  204. "jest": "^29.5.0",
  205. "jest-environment-jsdom": "^29.5.0",
  206. "lint-staged": "^13.2.2",
  207. "prettier": "^3.0.0",
  208. "react-test-renderer": "^18.2.0",
  209. "stylelint": "^15.10.1",
  210. "stylelint-config-standard-scss": "^11.0.0",
  211. "typescript": "^5.0.4",
  212. "webpack-dev-server": "^3.11.3",
  213. "yargs": "^17.7.2"
  214. },
  215. "resolutions": {
  216. "@types/react": "^18.0.26",
  217. "kind-of": "^6.0.3",
  218. "webpack/terser-webpack-plugin": "^4.2.3"
  219. },
  220. "optionalDependencies": {
  221. "bufferutil": "^4.0.7",
  222. "utf-8-validate": "^6.0.3"
  223. },
  224. "lint-staged": {
  225. "*": "prettier --ignore-unknown --write",
  226. "Capfile|Gemfile|*.{rb,ruby,ru,rake}": "bundle exec rubocop --force-exclusion -a",
  227. "*.{js,jsx,ts,tsx}": "eslint --fix",
  228. "*.{css,scss}": "stylelint --fix"
  229. }
  230. }