package.json 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. {
  2. "name": "@mastodon/mastodon",
  3. "license": "AGPL-3.0-or-later",
  4. "engines": {
  5. "node": ">=12"
  6. },
  7. "scripts": {
  8. "postversion": "git push --tags",
  9. "build:development": "cross-env RAILS_ENV=development NODE_ENV=development ./bin/webpack",
  10. "build:production": "cross-env RAILS_ENV=production NODE_ENV=production ./bin/webpack",
  11. "manage:translations": "node ./config/webpack/translationRunner.js",
  12. "start": "node ./streaming/index.js",
  13. "test": "${npm_execpath} run test:lint:js && ${npm_execpath} run test:jest",
  14. "test:lint": "${npm_execpath} run test:lint:js && ${npm_execpath} run test:lint:sass",
  15. "test:lint:js": "eslint --ext=js . --cache",
  16. "test:lint:sass": "sass-lint -v",
  17. "test:jest": "cross-env NODE_ENV=test jest",
  18. "format": "prettier --write '**/*.{json,yml}",
  19. "format-check": "prettier --write '**/*.{json,yml}"
  20. },
  21. "repository": {
  22. "type": "git",
  23. "url": "https://github.com/mastodon/mastodon.git"
  24. },
  25. "browserslist": [
  26. "last 2 versions",
  27. "not IE 11",
  28. "iOS >= 9",
  29. "not dead"
  30. ],
  31. "jest": {
  32. "testEnvironment": "jsdom",
  33. "projects": [
  34. "<rootDir>/app/javascript/mastodon"
  35. ],
  36. "testPathIgnorePatterns": [
  37. "<rootDir>/node_modules/",
  38. "<rootDir>/vendor/",
  39. "<rootDir>/config/",
  40. "<rootDir>/log/",
  41. "<rootDir>/public/",
  42. "<rootDir>/tmp/"
  43. ],
  44. "setupFiles": [
  45. "raf/polyfill"
  46. ],
  47. "setupFilesAfterEnv": [
  48. "<rootDir>/app/javascript/mastodon/test_setup.js"
  49. ],
  50. "collectCoverageFrom": [
  51. "app/javascript/mastodon/**/*.js",
  52. "!app/javascript/mastodon/features/emoji/emoji_compressed.js",
  53. "!app/javascript/mastodon/locales/locale-data/*.js",
  54. "!app/javascript/mastodon/service_worker/entry.js",
  55. "!app/javascript/mastodon/test_setup.js"
  56. ],
  57. "coverageDirectory": "<rootDir>/coverage",
  58. "moduleDirectories": [
  59. "<rootDir>/node_modules",
  60. "<rootDir>/app/javascript"
  61. ]
  62. },
  63. "private": true,
  64. "dependencies": {
  65. "@babel/core": "^7.17.7",
  66. "@babel/plugin-proposal-decorators": "^7.17.2",
  67. "@babel/plugin-transform-react-inline-elements": "^7.16.7",
  68. "@babel/plugin-transform-runtime": "^7.17.0",
  69. "@babel/preset-env": "^7.16.11",
  70. "@babel/preset-react": "^7.16.7",
  71. "@babel/runtime": "^7.17.7",
  72. "@gamestdio/websocket": "^0.3.2",
  73. "@github/webauthn-json": "^0.5.7",
  74. "@rails/ujs": "^6.1.5",
  75. "array-includes": "^3.1.4",
  76. "arrow-key-navigation": "^1.2.0",
  77. "autoprefixer": "^9.8.8",
  78. "axios": "^0.26.1",
  79. "babel-loader": "^8.2.3",
  80. "babel-plugin-lodash": "^3.3.4",
  81. "babel-plugin-preval": "^5.1.0",
  82. "babel-plugin-react-intl": "^6.2.0",
  83. "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
  84. "babel-runtime": "^6.26.0",
  85. "blurhash": "^1.1.5",
  86. "classnames": "^2.3.1",
  87. "color-blend": "^3.0.1",
  88. "compression-webpack-plugin": "^6.1.1",
  89. "cross-env": "^7.0.3",
  90. "css-loader": "^5.2.7",
  91. "cssnano": "^4.1.11",
  92. "detect-passive-events": "^2.0.3",
  93. "dotenv": "^16.0.0",
  94. "emoji-mart": "npm:emoji-mart-lazyload",
  95. "es6-symbol": "^3.1.3",
  96. "escape-html": "^1.0.3",
  97. "exif-js": "^2.3.0",
  98. "express": "^4.17.3",
  99. "file-loader": "^6.2.0",
  100. "font-awesome": "^4.7.0",
  101. "glob": "^7.2.0",
  102. "history": "^4.10.1",
  103. "http-link-header": "^1.0.4",
  104. "immutable": "^4.0.0",
  105. "imports-loader": "^1.2.0",
  106. "intersection-observer": "^0.12.0",
  107. "intl": "^1.2.5",
  108. "intl-messageformat": "^2.2.0",
  109. "intl-relativeformat": "^6.4.3",
  110. "is-nan": "^1.3.2",
  111. "js-yaml": "^4.1.0",
  112. "lodash": "^4.17.21",
  113. "mark-loader": "^0.1.6",
  114. "marky": "^1.2.4",
  115. "mini-css-extract-plugin": "^1.6.2",
  116. "mkdirp": "^1.0.4",
  117. "npmlog": "^6.0.1",
  118. "object-assign": "^4.1.1",
  119. "object-fit-images": "^3.2.3",
  120. "object.values": "^1.1.5",
  121. "offline-plugin": "^5.0.7",
  122. "path-complete-extname": "^1.0.0",
  123. "pg": "^8.5.0",
  124. "postcss-loader": "^3.0.0",
  125. "postcss-object-fit-images": "^1.1.2",
  126. "promise.prototype.finally": "^3.1.3",
  127. "prop-types": "^15.8.1",
  128. "punycode": "^2.1.0",
  129. "react": "^16.14.0",
  130. "react-dom": "^16.14.0",
  131. "react-hotkeys": "^1.1.4",
  132. "react-immutable-proptypes": "^2.2.0",
  133. "react-immutable-pure-component": "^2.2.2",
  134. "react-intl": "^2.9.0",
  135. "react-masonry-infinite": "^1.2.2",
  136. "react-motion": "^0.5.2",
  137. "react-notification": "^6.8.5",
  138. "react-overlays": "^0.9.3",
  139. "react-redux": "^7.2.6",
  140. "react-redux-loading-bar": "^4.0.8",
  141. "react-router-dom": "^4.1.1",
  142. "react-router-scroll-4": "^1.0.0-beta.1",
  143. "react-select": "^5.2.2",
  144. "react-sparklines": "^1.7.0",
  145. "react-swipeable-views": "^0.14.0",
  146. "react-textarea-autosize": "^8.3.3",
  147. "react-toggle": "^4.1.2",
  148. "redis": "^4.0.4",
  149. "redux": "^4.1.2",
  150. "redux-immutable": "^4.0.0",
  151. "redux-thunk": "^2.4.1",
  152. "regenerator-runtime": "^0.13.9",
  153. "rellax": "^1.12.1",
  154. "requestidlecallback": "^0.3.0",
  155. "reselect": "^4.1.5",
  156. "rimraf": "^3.0.2",
  157. "sass": "^1.49.9",
  158. "sass-loader": "^10.2.0",
  159. "stacktrace-js": "^2.0.2",
  160. "stringz": "^2.1.0",
  161. "substring-trie": "^1.0.2",
  162. "terser-webpack-plugin": "^4.2.3",
  163. "tesseract.js": "^2.1.1",
  164. "throng": "^4.0.0",
  165. "tiny-queue": "^0.2.1",
  166. "twitter-text": "3.1.0",
  167. "uuid": "^8.3.1",
  168. "webpack": "^4.46.0",
  169. "webpack-assets-manifest": "^4.0.6",
  170. "webpack-bundle-analyzer": "^4.5.0",
  171. "webpack-cli": "^3.3.12",
  172. "webpack-merge": "^5.8.0",
  173. "wicg-inert": "^3.1.1",
  174. "ws": "^8.5.0"
  175. },
  176. "devDependencies": {
  177. "@testing-library/jest-dom": "^5.16.2",
  178. "@testing-library/react": "^12.1.4",
  179. "babel-eslint": "^10.1.0",
  180. "babel-jest": "^27.5.1",
  181. "eslint": "^7.32.0",
  182. "eslint-plugin-import": "~2.25.4",
  183. "eslint-plugin-jsx-a11y": "~6.5.1",
  184. "eslint-plugin-promise": "~6.0.0",
  185. "eslint-plugin-react": "~7.29.3",
  186. "jest": "^27.5.1",
  187. "prettier": "^2.6.0",
  188. "raf": "^3.4.1",
  189. "react-intl-translations-manager": "^5.0.3",
  190. "react-test-renderer": "^16.14.0",
  191. "sass-lint": "^1.13.1",
  192. "webpack-dev-server": "^3.11.3",
  193. "yargs": "^17.3.1"
  194. },
  195. "resolutions": {
  196. "kind-of": "^6.0.3"
  197. },
  198. "optionalDependencies": {
  199. "bufferutil": "^4.0.6",
  200. "utf-8-validate": "^5.0.9"
  201. }
  202. }