package.json 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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\"",
  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\"",
  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. "@svgr/webpack": "^5.5.0",
  51. "abortcontroller-polyfill": "^1.7.5",
  52. "arrow-key-navigation": "^1.2.0",
  53. "async-mutex": "^0.4.0",
  54. "autoprefixer": "^10.4.14",
  55. "axios": "^1.4.0",
  56. "babel-loader": "^8.3.0",
  57. "babel-plugin-formatjs": "^10.5.1",
  58. "babel-plugin-lodash": "^3.3.4",
  59. "babel-plugin-preval": "^5.1.0",
  60. "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
  61. "blurhash": "^2.0.5",
  62. "classnames": "^2.3.2",
  63. "cocoon-js-vanilla": "^1.3.0",
  64. "color-blend": "^4.0.0",
  65. "compression-webpack-plugin": "^6.1.1",
  66. "core-js": "^3.30.2",
  67. "cross-env": "^7.0.3",
  68. "css-loader": "^5.2.7",
  69. "cssnano": "^6.0.1",
  70. "detect-passive-events": "^2.0.3",
  71. "dotenv": "^16.0.3",
  72. "emoji-mart": "npm:emoji-mart-lazyload@latest",
  73. "escape-html": "^1.0.3",
  74. "express": "^4.18.2",
  75. "file-loader": "^6.2.0",
  76. "font-awesome": "^4.7.0",
  77. "fuzzysort": "^2.0.4",
  78. "glob": "^10.2.6",
  79. "history": "^4.10.1",
  80. "http-link-header": "^1.1.1",
  81. "immutable": "^4.3.0",
  82. "imports-loader": "^1.2.0",
  83. "intl-messageformat": "^10.3.5",
  84. "js-yaml": "^4.1.0",
  85. "jsdom": "^22.1.0",
  86. "lodash": "^4.17.21",
  87. "mark-loader": "^0.1.6",
  88. "marky": "^1.2.5",
  89. "mini-css-extract-plugin": "^1.6.2",
  90. "mkdirp": "^3.0.1",
  91. "npmlog": "^7.0.1",
  92. "path-complete-extname": "^1.0.0",
  93. "pg": "^8.5.0",
  94. "pg-connection-string": "^2.6.0",
  95. "postcss": "^8.4.24",
  96. "postcss-loader": "^4.3.0",
  97. "prop-types": "^15.8.1",
  98. "punycode": "^2.3.0",
  99. "react": "^18.2.0",
  100. "react-dom": "^18.2.0",
  101. "react-helmet": "^6.1.0",
  102. "react-hotkeys": "^1.1.4",
  103. "react-immutable-proptypes": "^2.2.0",
  104. "react-immutable-pure-component": "^2.2.2",
  105. "react-intl": "^6.4.2",
  106. "react-motion": "^0.5.2",
  107. "react-notification": "^6.8.5",
  108. "react-overlays": "^5.2.1",
  109. "react-redux": "^8.0.4",
  110. "react-redux-loading-bar": "^5.0.4",
  111. "react-router": "^4.3.1",
  112. "react-router-dom": "^4.1.1",
  113. "react-router-scroll-4": "^1.0.0-beta.1",
  114. "react-select": "^5.7.3",
  115. "react-sparklines": "^1.7.0",
  116. "react-swipeable-views": "^0.14.0",
  117. "react-textarea-autosize": "^8.4.1",
  118. "react-toggle": "^4.1.3",
  119. "redis": "^4.6.5",
  120. "redux": "^4.2.1",
  121. "redux-immutable": "^4.0.0",
  122. "redux-thunk": "^2.4.2",
  123. "regenerator-runtime": "^0.13.11",
  124. "requestidlecallback": "^0.3.0",
  125. "reselect": "^4.1.8",
  126. "rimraf": "^5.0.1",
  127. "sass": "^1.62.1",
  128. "sass-loader": "^10.2.0",
  129. "stacktrace-js": "^2.0.2",
  130. "stringz": "^2.1.0",
  131. "substring-trie": "^1.0.2",
  132. "terser-webpack-plugin": "^4.2.3",
  133. "tesseract.js": "^2.1.5",
  134. "tiny-queue": "^0.2.1",
  135. "twitter-text": "3.1.0",
  136. "uuid": "^9.0.0",
  137. "webpack": "^4.46.0",
  138. "webpack-assets-manifest": "^4.0.6",
  139. "webpack-bundle-analyzer": "^4.8.0",
  140. "webpack-cli": "^3.3.12",
  141. "webpack-merge": "^5.9.0",
  142. "wicg-inert": "^3.1.2",
  143. "workbox-expiration": "^7.0.0",
  144. "workbox-precaching": "^7.0.0",
  145. "workbox-routing": "^7.0.0",
  146. "workbox-strategies": "^7.0.0",
  147. "workbox-webpack-plugin": "^7.0.0",
  148. "workbox-window": "^7.0.0",
  149. "ws": "^8.12.1"
  150. },
  151. "devDependencies": {
  152. "@formatjs/cli": "^6.1.1",
  153. "@testing-library/jest-dom": "^5.16.5",
  154. "@testing-library/react": "^14.0.0",
  155. "@types/babel__core": "^7.20.1",
  156. "@types/emoji-mart": "^3.0.9",
  157. "@types/escape-html": "^1.0.2",
  158. "@types/express": "^4.17.17",
  159. "@types/http-link-header": "^1.0.3",
  160. "@types/intl": "^1.2.0",
  161. "@types/jest": "^29.5.2",
  162. "@types/js-yaml": "^4.0.5",
  163. "@types/lodash": "^4.14.195",
  164. "@types/npmlog": "^4.1.4",
  165. "@types/object-assign": "^4.0.30",
  166. "@types/pg": "^8.6.6",
  167. "@types/prop-types": "^15.7.5",
  168. "@types/punycode": "^2.1.0",
  169. "@types/react": "^18.2.7",
  170. "@types/react-dom": "^18.2.4",
  171. "@types/react-helmet": "^6.1.6",
  172. "@types/react-immutable-proptypes": "^2.1.0",
  173. "@types/react-motion": "^0.0.34",
  174. "@types/react-overlays": "^3.1.0",
  175. "@types/react-router-dom": "^5.3.3",
  176. "@types/react-select": "^5.0.1",
  177. "@types/react-sparklines": "^1.7.2",
  178. "@types/react-swipeable-views": "^0.13.1",
  179. "@types/react-test-renderer": "^18.0.0",
  180. "@types/react-textarea-autosize": "^8.0.0",
  181. "@types/react-toggle": "^4.0.3",
  182. "@types/redux-immutable": "^4.0.3",
  183. "@types/requestidlecallback": "^0.3.5",
  184. "@types/uuid": "^9.0.0",
  185. "@types/webpack": "^4.41.33",
  186. "@types/yargs": "^17.0.24",
  187. "@typescript-eslint/eslint-plugin": "^6.0.0",
  188. "@typescript-eslint/parser": "^6.0.0",
  189. "babel-jest": "^29.5.0",
  190. "eslint": "^8.41.0",
  191. "eslint-config-prettier": "^8.8.0",
  192. "eslint-import-resolver-typescript": "^3.5.5",
  193. "eslint-plugin-formatjs": "^4.10.1",
  194. "eslint-plugin-import": "~2.27.5",
  195. "eslint-plugin-jsdoc": "^46.1.0",
  196. "eslint-plugin-jsx-a11y": "~6.7.1",
  197. "eslint-plugin-prettier": "^5.0.0",
  198. "eslint-plugin-promise": "~6.1.1",
  199. "eslint-plugin-react": "~7.32.2",
  200. "eslint-plugin-react-hooks": "^4.6.0",
  201. "husky": "^8.0.3",
  202. "jest": "^29.5.0",
  203. "jest-environment-jsdom": "^29.5.0",
  204. "lint-staged": "^13.2.2",
  205. "prettier": "^3.0.0",
  206. "react-test-renderer": "^18.2.0",
  207. "stylelint": "^15.10.1",
  208. "stylelint-config-standard-scss": "^10.0.0",
  209. "typescript": "^5.0.4",
  210. "webpack-dev-server": "^3.11.3",
  211. "yargs": "^17.7.2"
  212. },
  213. "resolutions": {
  214. "@types/react": "^18.0.26",
  215. "kind-of": "^6.0.3",
  216. "webpack/terser-webpack-plugin": "^4.2.3"
  217. },
  218. "optionalDependencies": {
  219. "bufferutil": "^4.0.7",
  220. "utf-8-validate": "^6.0.3"
  221. },
  222. "lint-staged": {
  223. "*": "prettier --ignore-unknown --write",
  224. "Capfile|Gemfile|*.{rb,ruby,ru,rake}": "bundle exec rubocop --force-exclusion -a",
  225. "*.{js,jsx,ts,tsx}": "eslint --fix",
  226. "*.{css,scss}": "stylelint --fix"
  227. }
  228. }