package.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. {
  2. "name": "@overleaf/web",
  3. "description": "The HTTP front end for Overleaf",
  4. "private": true,
  5. "main": "app.js",
  6. "directories": {
  7. "public": "./public"
  8. },
  9. "scripts": {
  10. "test:acceptance:run_dir": "mocha --recursive --timeout 25000 --exit --grep=$MOCHA_GREP --require test/acceptance/bootstrap.js",
  11. "test:acceptance:app": "npm run test:acceptance:run_dir -- test/acceptance/src",
  12. "test:unit:run_dir": "mocha --recursive --timeout 25000 --exit --grep=$MOCHA_GREP --require test/unit/bootstrap.js",
  13. "test:unit:all": "npm run test:unit:run_dir -- test/unit/src modules/*/test/unit/src",
  14. "test:unit:all:silent": "npm run test:unit:all -- --reporter dot",
  15. "test:unit:app": "npm run test:unit:run_dir -- test/unit/src",
  16. "test:frontend": "NODE_ENV=test TZ=GMT mocha --recursive --timeout 5000 --exit --extension js,ts,tsx --grep=$MOCHA_GREP --require test/frontend/bootstrap.js --ignore '**/*.spec.{js,ts,tsx}' test/frontend modules/*/test/frontend",
  17. "test:frontend:coverage": "c8 --all --include 'frontend/js' --include 'modules/*/frontend/js' --exclude 'frontend/js/vendor' --reporter=lcov --reporter=text-summary npm run test:frontend",
  18. "test:karma": "karma start",
  19. "test:karma:single": "karma start --no-auto-watch --single-run",
  20. "start": "node $NODE_APP_OPTIONS app.js",
  21. "nodemon": "nodemon $NODE_APP_OPTIONS --config nodemon.json",
  22. "webpack": "webpack serve --config webpack.config.dev.js",
  23. "webpack:production": "webpack --config webpack.config.prod.js",
  24. "webpack:profile": "webpack --config webpack.config.prod.js --profile --json > stats.json",
  25. "format": "prettier --list-different $PWD/'**/*.{js,ts,tsx}'",
  26. "format:fix": "prettier --write $PWD/'**/*.{js,ts,tsx}'",
  27. "format:styles": "prettier --list-different $PWD/'**/*.less'",
  28. "format:styles:fix": "prettier --write $PWD/'**/*.less'",
  29. "lint": "eslint --max-warnings 0 --format unix --ext .js,.ts,.tsx .",
  30. "lint:fix": "eslint --fix --ext .js,.ts,.tsx .",
  31. "type-check": "tsc --noEmit",
  32. "extract-translations": "i18next-scanner",
  33. "migrations": "east",
  34. "convert-themes": "node modules/source-editor/frontend/js/themes/convert.js",
  35. "cypress:open-ct": "SHARELATEX_CONFIG=$PWD/config/settings.webpack.js cypress open-ct",
  36. "cypress:run-ct": "SHARELATEX_CONFIG=$PWD/config/settings.webpack.js cypress run-ct",
  37. "routes": "bin/routes"
  38. },
  39. "browserslist": [
  40. "last 1 year",
  41. "ie 11",
  42. "firefox esr"
  43. ],
  44. "dependencies": {
  45. "@babel/cli": "^7.14.5",
  46. "@babel/core": "^7.14.5",
  47. "@babel/preset-env": "^7.14.5",
  48. "@babel/preset-react": "^7.14.5",
  49. "@babel/preset-typescript": "^7.16.0",
  50. "@codemirror/autocomplete": "^0.19.13",
  51. "@codemirror/closebrackets": "^0.19.1",
  52. "@codemirror/commands": "^0.19.8",
  53. "@codemirror/comment": "^0.19.1",
  54. "@codemirror/fold": "^0.19.3",
  55. "@codemirror/gutter": "^0.19.9",
  56. "@codemirror/highlight": "^0.19.7",
  57. "@codemirror/history": "^0.19.2",
  58. "@codemirror/lang-markdown": "^0.19.6",
  59. "@codemirror/language": "^0.19.8",
  60. "@codemirror/lint": "^0.19.6",
  61. "@codemirror/matchbrackets": "^0.19.4",
  62. "@codemirror/rangeset": "^0.19.8",
  63. "@codemirror/rectangular-selection": "^0.19.1",
  64. "@codemirror/search": "^0.19.9",
  65. "@codemirror/state": "^0.19.9",
  66. "@codemirror/stream-parser": "^0.19.7",
  67. "@codemirror/tooltip": "^0.19.16",
  68. "@codemirror/view": "^0.19.46",
  69. "@overleaf/logger": "^3.1.0",
  70. "@overleaf/metrics": "^4.0.0",
  71. "@overleaf/o-error": "^3.4.0",
  72. "@overleaf/object-persistor": "^1.0.1",
  73. "@overleaf/redis-wrapper": "^2.0.0",
  74. "@overleaf/settings": "^3.0.0",
  75. "@pollyjs/adapter-node-http": "^4.2.1",
  76. "@pollyjs/core": "^4.2.1",
  77. "@pollyjs/persister-fs": "^4.2.1",
  78. "@reach/tabs": "^0.15.0",
  79. "@replit/codemirror-emacs": "^0.19.0",
  80. "@replit/codemirror-vim": "^0.19.0",
  81. "@sentry/browser": "^6.3.5",
  82. "@uppy/core": "^1.15.0",
  83. "@uppy/dashboard": "^1.11.0",
  84. "@uppy/react": "^1.11.0",
  85. "@uppy/xhr-upload": "^1.6.8",
  86. "abort-controller": "^3.0.0",
  87. "accepts": "^1.3.7",
  88. "ace-builds": "https://github.com/overleaf/ace-builds/archive/v1.4.12-69aace50e6796d42116f8f96e19d2468d8a88af9.tar.gz",
  89. "algoliasearch": "^3.35.1",
  90. "angular": "~1.8.0",
  91. "angular-sanitize": "~1.8.0",
  92. "archiver": "^5.3.0",
  93. "async": "0.6.2",
  94. "backbone": "^1.3.3",
  95. "basic-auth": "^2.0.1",
  96. "bcrypt": "^5.0.0",
  97. "body-parser": "^1.19.0",
  98. "bootstrap": "^3.4.1",
  99. "bowser": "^2.11.0",
  100. "bufferedstream": "1.6.0",
  101. "bull": "^3.18.0",
  102. "bunyan": "^1.8.15",
  103. "cache-flow": "^1.7.4",
  104. "celebrate": "^10.0.1",
  105. "classnames": "^2.2.6",
  106. "codemirror": "~5.33.0",
  107. "connect-redis": "^3.1.0",
  108. "contentful": "^6.1.1",
  109. "cookie": "^0.2.3",
  110. "cookie-parser": "1.3.5",
  111. "core-js": "^3.6.2",
  112. "crypto-js": "^3.1.9-1",
  113. "csurf": "^1.11.0",
  114. "d3": "^3.5.16",
  115. "dateformat": "1.0.4-1.2.3",
  116. "daterangepicker": "https://github.com/overleaf/daterangepicker/archive/e496d2d44ca53e208c930e4cb4bcf29bcefa4550.tar.gz",
  117. "downshift": "^6.1.0",
  118. "east": "^2.0.2",
  119. "express": "4.17.1",
  120. "express-bearer-token": "^2.4.0",
  121. "express-http-proxy": "^1.6.0",
  122. "express-session": "^1.17.1",
  123. "formik": "^2.2.9",
  124. "fs-extra": "^4.0.2",
  125. "fuse.js": "^3.0.0",
  126. "globby": "^5.0.0",
  127. "handlebars": "^4.7.7",
  128. "helmet": "^3.22.0",
  129. "http-proxy": "^1.18.1",
  130. "i18next": "^19.6.3",
  131. "i18next-fs-backend": "^1.0.7",
  132. "i18next-http-middleware": "^3.0.2",
  133. "isomorphic-unfetch": "^3.0.0",
  134. "jose": "^4.3.8",
  135. "jquery": "^2.2.4",
  136. "json2csv": "^4.3.3",
  137. "jsonwebtoken": "^8.5.1",
  138. "ldapjs": "^0.7.1",
  139. "lodash": "^4.17.19",
  140. "lru-cache": "^6.0.0",
  141. "mailchimp-api-v3": "^1.12.0",
  142. "marked": "^0.3.5",
  143. "match-sorter": "^6.2.0",
  144. "mathjax": "^2.7.9",
  145. "method-override": "^2.3.3",
  146. "minimist": "1.2.5",
  147. "mmmagic": "^0.5.3",
  148. "moment": "^2.24.0",
  149. "mongodb": "~3.6.0",
  150. "mongoose": "^5.13.11",
  151. "multer": "https://github.com/overleaf/multer/archive/7a2928d7ea2da02dd92888ea1c9ba5704e07aeeb.tar.gz",
  152. "nocache": "^2.1.0",
  153. "nock": "^13.1.3",
  154. "nodemailer": "^6.7.0",
  155. "nodemailer-mandrill-transport": "^1.2.0",
  156. "nodemailer-ses-transport": "^1.5.1",
  157. "nvd3": "^1.8.6",
  158. "oauth2-server": "^3.0.1",
  159. "otplib": "^12.0.1",
  160. "p-limit": "^2.3.0",
  161. "parse-data-url": "^2.0.0",
  162. "passport": "^0.4.1",
  163. "passport-google-oauth20": "^2.0.0",
  164. "passport-ldapauth": "^2.1.4",
  165. "passport-local": "^1.0.0",
  166. "passport-oauth2": "^1.5.0",
  167. "passport-orcid": "0.0.4",
  168. "passport-saml": "https://github.com/overleaf/passport-saml/releases/download/v3.0.0-overleaf/passport-saml-3.0.0-overleaf.tar.gz",
  169. "passport-twitter": "^1.0.4",
  170. "pdfjs-dist210": "npm:pdfjs-dist@2.10.377",
  171. "pdfjs-dist213": "npm:pdfjs-dist@2.13.216",
  172. "prop-types": "^15.7.2",
  173. "pug": "^3.0.1",
  174. "pug-runtime": "^3.0.1",
  175. "qrcode": "^1.4.4",
  176. "react": "^17.0.2",
  177. "react-bootstrap": "^0.33.1",
  178. "react-dnd": "^11.1.3",
  179. "react-dnd-html5-backend": "^11.1.3",
  180. "react-dom": "^17.0.2",
  181. "react-error-boundary": "^2.3.1",
  182. "react-i18next": "^11.7.1",
  183. "react-linkify": "^1.0.0-alpha",
  184. "react2angular": "^4.0.6",
  185. "react2angular-shared-context": "^1.1.0",
  186. "recurly": "^4.0.0",
  187. "referer-parser": "0.0.3",
  188. "request": "^2.88.2",
  189. "request-promise-native": "^1.0.8",
  190. "requestretry": "^6.0.0",
  191. "rimraf": "2.2.6",
  192. "rolling-rate-limiter": "^0.2.10",
  193. "sanitize-html": "^1.27.1",
  194. "scroll-into-view-if-needed": "^2.2.25",
  195. "sysend": "^1.10.0",
  196. "tsscmp": "^1.0.6",
  197. "underscore": "^1.13.1",
  198. "unzipper": "^0.10.11",
  199. "url-parse": "^1.4.7",
  200. "utf-8-validate": "^5.0.2",
  201. "uuid": "^3.0.1",
  202. "valid-data-url": "^2.0.0",
  203. "valid-url": "^1.0.9",
  204. "xml-crypto": "^2.1.2",
  205. "xml2js": "^0.4.22",
  206. "xregexp": "^4.3.0",
  207. "yauzl": "^2.10.0",
  208. "yup": "^0.32.11"
  209. },
  210. "devDependencies": {
  211. "@babel/register": "^7.14.5",
  212. "@cypress/react": "^5.12.1",
  213. "@cypress/webpack-dev-server": "^1.8.0",
  214. "@cypress/webpack-preprocessor": "^5.11.1",
  215. "@juggle/resize-observer": "^3.3.1",
  216. "@testing-library/cypress": "^8.0.2",
  217. "@testing-library/dom": "^7.31.2",
  218. "@testing-library/react": "^11.2.7",
  219. "@testing-library/react-hooks": "^7.0.0",
  220. "@types/chai": "^4.3.0",
  221. "@types/mocha": "^9.1.0",
  222. "@types/react": "^17.0.40",
  223. "@types/react-bootstrap": "^0.32.29",
  224. "@types/react-dom": "^17.0.13",
  225. "@types/sinon-chai": "^3.2.8",
  226. "@typescript-eslint/eslint-plugin": "^5.12.1",
  227. "@typescript-eslint/parser": "^5.3.1",
  228. "acorn": "^7.1.1",
  229. "acorn-walk": "^7.1.1",
  230. "angular-mocks": "~1.8.0",
  231. "autoprefixer": "^9.7.6",
  232. "babel-loader": "^8.2.4",
  233. "babel-plugin-angularjs-annotate": "^0.10.0",
  234. "babel-plugin-macros": "^3.1.0",
  235. "c8": "^7.2.0",
  236. "chai": "^4.3.6",
  237. "chai-as-promised": "^7.1.1",
  238. "chai-exclude": "^2.0.3",
  239. "chaid": "^1.0.2",
  240. "cheerio": "^1.0.0-rc.3",
  241. "content-disposition": "^0.5.0",
  242. "copy-webpack-plugin": "^10.2.4",
  243. "css-loader": "^6.7.1",
  244. "css-minimizer-webpack-plugin": "^3.4.1",
  245. "cypress": "^9.5.1",
  246. "es6-promise": "^4.2.8",
  247. "escodegen": "^2.0.0",
  248. "eslint": "^8.9.0",
  249. "eslint-config-prettier": "^8.3.0",
  250. "eslint-config-standard": "^16.0.3",
  251. "eslint-config-standard-jsx": "^11.0.0-0",
  252. "eslint-plugin-chai-expect": "^2.2.0",
  253. "eslint-plugin-chai-friendly": "^0.7.2",
  254. "eslint-plugin-cypress": "^2.12.1",
  255. "eslint-plugin-import": "^2.25.3",
  256. "eslint-plugin-jsx-a11y": "^6.5.1",
  257. "eslint-plugin-mocha": "^9.0.0",
  258. "eslint-plugin-node": "^11.1.0",
  259. "eslint-plugin-promise": "^6.0.0",
  260. "eslint-plugin-react": "^7.27.0",
  261. "eslint-plugin-react-hooks": "^4.3.0",
  262. "eslint-plugin-standard": "^5.0.0",
  263. "expose-loader": "^3.1.0",
  264. "fetch-mock": "^9.10.2",
  265. "glob": "^7.1.6",
  266. "handlebars-loader": "^1.7.1",
  267. "i18next-scanner": "^3.0.0",
  268. "jsdom": "^19.0.0",
  269. "jsdom-global": "^3.0.2",
  270. "karma": "^6.3.17",
  271. "karma-chai-sinon": "^0.1.5",
  272. "karma-chrome-launcher": "^3.1.0",
  273. "karma-mocha": "^2.0.0",
  274. "karma-mocha-reporter": "^2.2.5",
  275. "karma-requirejs": "^1.1.0",
  276. "karma-webpack": "^5.0.0",
  277. "less": "^3.11.1",
  278. "less-loader": "^10.2.0",
  279. "less-plugin-autoprefix": "^2.0.0",
  280. "mensch": "^0.3.4",
  281. "mini-css-extract-plugin": "^2.6.0",
  282. "mkdirp": "0.5.1",
  283. "mocha": "^8.4.0",
  284. "mock-fs": "^5.1.2",
  285. "nock": "^13.1.1",
  286. "node-fetch": "^2.6.7",
  287. "nodemon": "^2.0.6",
  288. "pirates": "^4.0.1",
  289. "postcss-loader": "^6.2.1",
  290. "prettier": "2.5.1",
  291. "requirejs": "^2.3.6",
  292. "samlp": "^3.4.1",
  293. "sandboxed-module": "https://github.com/overleaf/node-sandboxed-module/archive/cafa2d60f17ce75cc023e6f296eb8de79d92d35d.tar.gz",
  294. "sinon": "^7.5.0",
  295. "sinon-chai": "^3.7.0",
  296. "sinon-mongoose": "^2.3.0",
  297. "socket.io-mock": "^1.3.1",
  298. "terser-webpack-plugin": "^5.3.1",
  299. "timekeeper": "^2.2.0",
  300. "to-string-loader": "^1.2.0",
  301. "typescript": "^4.5.5",
  302. "val-loader": "^4.0.0",
  303. "webpack": "^5.71.0",
  304. "webpack-assets-manifest": "^5.1.0",
  305. "webpack-cli": "^4.9.2",
  306. "webpack-dev-server": "^4.7.4",
  307. "webpack-merge": "^5.8.0",
  308. "worker-loader": "^3.0.8"
  309. }
  310. }