You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

201 lines
6.2 KiB

  1. {
  2. "name": "@tootsuite/mastodon",
  3. "license": "AGPL-3.0-or-later",
  4. "engines": {
  5. "node": ">=10.13"
  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 --coverage"
  18. },
  19. "repository": {
  20. "type": "git",
  21. "url": "https://github.com/tootsuite/mastodon.git"
  22. },
  23. "browserslist": [
  24. "last 2 versions",
  25. "not IE 11",
  26. "iOS >= 9",
  27. "not dead"
  28. ],
  29. "jest": {
  30. "projects": [
  31. "<rootDir>/app/javascript/mastodon"
  32. ],
  33. "testPathIgnorePatterns": [
  34. "<rootDir>/node_modules/",
  35. "<rootDir>/vendor/",
  36. "<rootDir>/config/",
  37. "<rootDir>/log/",
  38. "<rootDir>/public/",
  39. "<rootDir>/tmp/",
  40. "<rootDir>/app/javascript/themes/"
  41. ],
  42. "setupFiles": [
  43. "raf/polyfill"
  44. ],
  45. "setupFilesAfterEnv": [
  46. "<rootDir>/app/javascript/mastodon/test_setup.js"
  47. ],
  48. "collectCoverageFrom": [
  49. "app/javascript/mastodon/**/*.js",
  50. "!app/javascript/mastodon/features/emoji/emoji_compressed.js",
  51. "!app/javascript/mastodon/locales/locale-data/*.js",
  52. "!app/javascript/mastodon/service_worker/entry.js",
  53. "!app/javascript/mastodon/test_setup.js"
  54. ],
  55. "coverageDirectory": "<rootDir>/coverage",
  56. "moduleDirectories": [
  57. "<rootDir>/node_modules",
  58. "<rootDir>/app/javascript"
  59. ]
  60. },
  61. "private": true,
  62. "dependencies": {
  63. "@babel/core": "^7.13.8",
  64. "@babel/plugin-proposal-class-properties": "^7.8.3",
  65. "@babel/plugin-proposal-decorators": "^7.13.5",
  66. "@babel/plugin-transform-react-inline-elements": "^7.12.13",
  67. "@babel/plugin-transform-runtime": "^7.13.9",
  68. "@babel/preset-env": "^7.13.9",
  69. "@babel/preset-react": "^7.12.13",
  70. "@babel/runtime": "^7.13.9",
  71. "@clusterws/cws": "^3.0.0",
  72. "@gamestdio/websocket": "^0.3.2",
  73. "@github/webauthn-json": "^0.5.7",
  74. "@rails/ujs": "^6.1.3",
  75. "array-includes": "^3.1.3",
  76. "atrament": "0.2.4",
  77. "arrow-key-navigation": "^1.2.0",
  78. "atrament": "0.2.4",
  79. "autoprefixer": "^9.8.6",
  80. "axios": "^0.21.1",
  81. "babel-loader": "^8.2.2",
  82. "babel-plugin-lodash": "^3.3.4",
  83. "babel-plugin-preval": "^5.0.0",
  84. "babel-plugin-react-intl": "^6.2.0",
  85. "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
  86. "babel-runtime": "^6.26.0",
  87. "blurhash": "^1.1.3",
  88. "classnames": "^2.2.5",
  89. "color-blend": "^3.0.1",
  90. "compression-webpack-plugin": "^6.1.1",
  91. "cross-env": "^7.0.3",
  92. "css-loader": "^5.1.1",
  93. "cssnano": "^4.1.10",
  94. "detect-passive-events": "^2.0.3",
  95. "dotenv": "^8.2.0",
  96. "emoji-mart": "Gargron/emoji-mart#build",
  97. "es6-symbol": "^3.1.3",
  98. "escape-html": "^1.0.3",
  99. "exif-js": "^2.3.0",
  100. "express": "^4.17.1",
  101. "favico.js": "^0.3.10",
  102. "file-loader": "^6.2.0",
  103. "font-awesome": "^4.7.0",
  104. "glob": "^7.1.6",
  105. "history": "^4.10.1",
  106. "http-link-header": "^1.0.3",
  107. "immutable": "^3.8.2",
  108. "imports-loader": "^1.2.0",
  109. "intersection-observer": "^0.12.0",
  110. "intl": "^1.2.5",
  111. "intl-messageformat": "^2.2.0",
  112. "intl-relativeformat": "^6.4.3",
  113. "is-nan": "^1.3.2",
  114. "js-yaml": "^4.0.0",
  115. "lodash": "^4.17.21",
  116. "mark-loader": "^0.1.6",
  117. "marky": "^1.2.1",
  118. "mini-css-extract-plugin": "^1.3.9",
  119. "mkdirp": "^1.0.4",
  120. "npmlog": "^4.1.2",
  121. "object-assign": "^4.1.1",
  122. "object-fit-images": "^3.2.3",
  123. "object.values": "^1.1.3",
  124. "offline-plugin": "^5.0.7",
  125. "path-complete-extname": "^1.0.0",
  126. "pg": "^8.5.0",
  127. "postcss-loader": "^3.0.0",
  128. "postcss-object-fit-images": "^1.1.2",
  129. "promise.prototype.finally": "^3.1.2",
  130. "prop-types": "^15.5.10",
  131. "punycode": "^2.1.0",
  132. "react": "^16.14.0",
  133. "react-dom": "^16.14.0",
  134. "react-giphy-searchbox": "^1.5.4",
  135. "react-hotkeys": "^1.1.4",
  136. "react-immutable-proptypes": "^2.2.0",
  137. "react-immutable-pure-component": "^2.2.2",
  138. "react-intl": "^2.9.0",
  139. "react-masonry-infinite": "^1.2.2",
  140. "react-motion": "^0.5.2",
  141. "react-notification": "^6.8.5",
  142. "react-overlays": "^0.9.3",
  143. "react-redux": "^7.2.2",
  144. "react-redux-loading-bar": "^4.0.8",
  145. "react-router-dom": "^4.1.1",
  146. "react-router-scroll-4": "^1.0.0-beta.1",
  147. "react-select": "^3.2.0",
  148. "react-sparklines": "^1.7.0",
  149. "react-swipeable-views": "^0.13.9",
  150. "react-textarea-autosize": "^8.3.2",
  151. "react-toggle": "^4.1.1",
  152. "redis": "^3.0.2",
  153. "redux": "^4.0.5",
  154. "redux-immutable": "^4.0.0",
  155. "redux-thunk": "^2.2.0",
  156. "regenerator-runtime": "^0.13.7",
  157. "rellax": "^1.12.1",
  158. "requestidlecallback": "^0.3.0",
  159. "reselect": "^4.0.0",
  160. "rimraf": "^3.0.2",
  161. "sass": "^1.32.8",
  162. "sass-loader": "^10.1.1",
  163. "stacktrace-js": "^2.0.2",
  164. "stringz": "^2.1.0",
  165. "substring-trie": "^1.0.2",
  166. "terser-webpack-plugin": "^4.2.3",
  167. "tesseract.js": "^2.1.1",
  168. "throng": "^4.0.0",
  169. "tiny-queue": "^0.2.1",
  170. "twitter-text": "3.1.0",
  171. "uuid": "^8.3.1",
  172. "webpack": "^4.46.0",
  173. "webpack-assets-manifest": "^4.0.1",
  174. "webpack-bundle-analyzer": "^4.4.0",
  175. "webpack-cli": "^3.3.12",
  176. "webpack-merge": "^5.7.3",
  177. "wicg-inert": "^3.1.1"
  178. },
  179. "devDependencies": {
  180. "@testing-library/jest-dom": "^5.11.9",
  181. "@testing-library/react": "^11.2.5",
  182. "babel-eslint": "^10.1.0",
  183. "babel-jest": "^26.6.3",
  184. "eslint": "^7.21.0",
  185. "eslint-plugin-import": "~2.22.1",
  186. "eslint-plugin-jsx-a11y": "~6.4.1",
  187. "eslint-plugin-promise": "~4.3.1",
  188. "eslint-plugin-react": "~7.22.0",
  189. "jest": "^26.6.3",
  190. "raf": "^3.4.1",
  191. "react-intl-translations-manager": "^5.0.3",
  192. "react-test-renderer": "^16.14.0",
  193. "sass-lint": "^1.13.1",
  194. "webpack-dev-server": "^3.11.2",
  195. "yargs": "^16.2.0"
  196. },
  197. "resolutions": {
  198. "kind-of": "^6.0.3"
  199. }
  200. }