package.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  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,mjs,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 --component",
  36. "cypress:run-ct": "SHARELATEX_CONFIG=$PWD/config/settings.webpack.js cypress run --component",
  37. "lezer-latex:generate": "node modules/source-editor/scripts/lezer-latex/generate.js",
  38. "lezer-latex:run": "node modules/source-editor/scripts/lezer-latex/run.mjs",
  39. "routes": "bin/routes"
  40. },
  41. "browserslist": [
  42. "last 1 year",
  43. "ie 11",
  44. "firefox esr"
  45. ],
  46. "dependencies": {
  47. "@babel/cli": "^7.14.5",
  48. "@babel/core": "^7.14.5",
  49. "@babel/preset-env": "^7.14.5",
  50. "@babel/preset-react": "^7.14.5",
  51. "@babel/preset-typescript": "^7.16.0",
  52. "@codemirror/autocomplete": "^0.20.3",
  53. "@codemirror/commands": "^0.20.0",
  54. "@codemirror/lang-markdown": "^0.20.1",
  55. "@codemirror/language": "^0.20.2",
  56. "@codemirror/lint": "^0.20.3",
  57. "@codemirror/search": "^0.20.1",
  58. "@codemirror/state": "^0.20.1",
  59. "@codemirror/view": "^0.20.7",
  60. "@lezer/common": "^0.16.0",
  61. "@lezer/highlight": "^0.16.0",
  62. "@lezer/lr": "^0.16.3",
  63. "@overleaf/logger": "^3.1.0",
  64. "@overleaf/metrics": "^4.0.0",
  65. "@overleaf/o-error": "^3.4.0",
  66. "@overleaf/object-persistor": "^1.0.1",
  67. "@overleaf/redis-wrapper": "^2.0.0",
  68. "@overleaf/settings": "^3.0.0",
  69. "@pollyjs/adapter-node-http": "^4.2.1",
  70. "@pollyjs/core": "^4.2.1",
  71. "@pollyjs/persister-fs": "^4.2.1",
  72. "@reach/tabs": "^0.15.0",
  73. "@replit/codemirror-emacs": "^0.20.0",
  74. "@replit/codemirror-vim": "^0.20.0",
  75. "@sentry/browser": "^6.3.5",
  76. "@uppy/core": "^1.15.0",
  77. "@uppy/dashboard": "^1.11.0",
  78. "@uppy/react": "^1.11.0",
  79. "@uppy/xhr-upload": "^1.6.8",
  80. "abort-controller": "^3.0.0",
  81. "accepts": "^1.3.7",
  82. "ace-builds": "https://github.com/overleaf/ace-builds/archive/v1.4.12-69aace50e6796d42116f8f96e19d2468d8a88af9.tar.gz",
  83. "algoliasearch": "^3.35.1",
  84. "angular": "~1.8.0",
  85. "angular-sanitize": "~1.8.0",
  86. "archiver": "^5.3.0",
  87. "async": "3.2.2",
  88. "backbone": "^1.3.3",
  89. "basic-auth": "^2.0.1",
  90. "bcrypt": "^5.0.0",
  91. "body-parser": "^1.19.0",
  92. "bootstrap": "^3.4.1",
  93. "bowser": "^2.11.0",
  94. "bufferedstream": "1.6.0",
  95. "bull": "^3.18.0",
  96. "bunyan": "^1.8.15",
  97. "cache-flow": "^1.7.4",
  98. "celebrate": "^10.0.1",
  99. "classnames": "^2.2.6",
  100. "codemirror": "~5.33.0",
  101. "connect-redis": "^3.1.0",
  102. "contentful": "^6.1.1",
  103. "cookie": "^0.2.3",
  104. "cookie-parser": "1.3.5",
  105. "core-js": "^3.6.2",
  106. "crypto-js": "^3.1.9-1",
  107. "csurf": "^1.11.0",
  108. "d3": "^3.5.16",
  109. "dateformat": "1.0.4-1.2.3",
  110. "daterangepicker": "https://github.com/overleaf/daterangepicker/archive/e496d2d44ca53e208c930e4cb4bcf29bcefa4550.tar.gz",
  111. "downshift": "^6.1.0",
  112. "east": "^2.0.2",
  113. "email-addresses": "^5.0.0",
  114. "events": "^3.3.0",
  115. "express": "4.17.1",
  116. "express-bearer-token": "^2.4.0",
  117. "express-http-proxy": "^1.6.0",
  118. "express-session": "^1.17.1",
  119. "formik": "^2.2.9",
  120. "fs-extra": "^4.0.2",
  121. "fuse.js": "^3.0.0",
  122. "globby": "^5.0.0",
  123. "handlebars": "^4.7.7",
  124. "helmet": "^3.22.0",
  125. "http-proxy": "^1.18.1",
  126. "i18next": "^19.6.3",
  127. "i18next-fs-backend": "^1.0.7",
  128. "i18next-http-middleware": "^3.0.2",
  129. "isomorphic-unfetch": "^3.0.0",
  130. "jose": "^4.3.8",
  131. "jquery": "^2.2.4",
  132. "json2csv": "^4.3.3",
  133. "jsonwebtoken": "^8.5.1",
  134. "ldapjs": "^0.7.1",
  135. "lodash": "^4.17.19",
  136. "lru-cache": "^7.10.1",
  137. "mailchimp-api-v3": "^1.12.0",
  138. "marked": "^0.3.5",
  139. "match-sorter": "^6.2.0",
  140. "mathjax": "^2.7.9",
  141. "method-override": "^2.3.3",
  142. "minimist": "1.2.5",
  143. "mmmagic": "^0.5.3",
  144. "moment": "^2.29.3",
  145. "mongodb": "~3.6.0",
  146. "mongoose": "^5.13.11",
  147. "multer": "https://github.com/overleaf/multer/archive/7a2928d7ea2da02dd92888ea1c9ba5704e07aeeb.tar.gz",
  148. "nocache": "^2.1.0",
  149. "nock": "^13.1.3",
  150. "node-fetch": "^2.6.7",
  151. "nodemailer": "^6.7.0",
  152. "nodemailer-mandrill-transport": "^1.2.0",
  153. "nodemailer-ses-transport": "^1.5.1",
  154. "nvd3": "^1.8.6",
  155. "oauth2-server": "^3.0.1",
  156. "otplib": "^12.0.1",
  157. "p-limit": "^2.3.0",
  158. "parse-data-url": "^2.0.0",
  159. "passport": "^0.4.1",
  160. "passport-google-oauth20": "^2.0.0",
  161. "passport-ldapauth": "^2.1.4",
  162. "passport-local": "^1.0.0",
  163. "passport-oauth2": "^1.5.0",
  164. "passport-orcid": "0.0.4",
  165. "passport-saml": "https://github.com/overleaf/passport-saml/releases/download/v3.2.1-overleaf/passport-saml-3.2.1-overleaf.tar.gz",
  166. "passport-twitter": "^1.0.4",
  167. "pdfjs-dist210": "npm:pdfjs-dist@2.10.377",
  168. "pdfjs-dist213": "npm:pdfjs-dist@2.13.216",
  169. "prop-types": "^15.7.2",
  170. "pug": "^3.0.1",
  171. "pug-runtime": "^3.0.1",
  172. "qrcode": "^1.4.4",
  173. "react": "^17.0.2",
  174. "react-bootstrap": "^0.33.1",
  175. "react-dnd": "^11.1.3",
  176. "react-dnd-html5-backend": "^11.1.3",
  177. "react-dom": "^17.0.2",
  178. "react-error-boundary": "^2.3.1",
  179. "react-i18next": "^11.7.1",
  180. "react-linkify": "^1.0.0-alpha",
  181. "react2angular": "^4.0.6",
  182. "react2angular-shared-context": "^1.1.0",
  183. "recurly": "^4.0.0",
  184. "referer-parser": "0.0.3",
  185. "request": "^2.88.2",
  186. "request-promise-native": "^1.0.8",
  187. "requestretry": "^6.0.0",
  188. "rimraf": "2.2.6",
  189. "rolling-rate-limiter": "^0.2.10",
  190. "sanitize-html": "^1.27.1",
  191. "scroll-into-view-if-needed": "^2.2.25",
  192. "sysend": "^1.10.0",
  193. "tsscmp": "^1.0.6",
  194. "underscore": "^1.13.1",
  195. "unzipper": "^0.10.11",
  196. "utf-8-validate": "^5.0.2",
  197. "uuid": "^3.0.1",
  198. "valid-data-url": "^2.0.0",
  199. "valid-url": "^1.0.9",
  200. "xml-crypto": "^2.1.2",
  201. "xml2js": "^0.4.22",
  202. "xregexp": "^4.3.0",
  203. "yauzl": "^2.10.0",
  204. "yup": "^0.32.11"
  205. },
  206. "devDependencies": {
  207. "@babel/register": "^7.14.5",
  208. "@cypress/react": "^5.12.5",
  209. "@juggle/resize-observer": "^3.3.1",
  210. "@lezer/generator": "^0.16.0",
  211. "@testing-library/cypress": "^8.0.3",
  212. "@testing-library/dom": "^8.13.0",
  213. "@testing-library/react": "^12.1.5",
  214. "@testing-library/react-hooks": "^8.0.0",
  215. "@testing-library/user-event": "^14.2.0",
  216. "@types/chai": "^4.3.0",
  217. "@types/events": "^3.0.0",
  218. "@types/mocha": "^9.1.0",
  219. "@types/react": "^17.0.40",
  220. "@types/react-bootstrap": "^0.32.29",
  221. "@types/react-dom": "^17.0.13",
  222. "@types/sinon-chai": "^3.2.8",
  223. "@types/uuid": "^8.3.4",
  224. "@typescript-eslint/eslint-plugin": "^5.12.1",
  225. "@typescript-eslint/parser": "^5.3.1",
  226. "acorn": "^7.1.1",
  227. "acorn-walk": "^7.1.1",
  228. "angular-mocks": "~1.8.0",
  229. "autoprefixer": "^9.7.6",
  230. "babel-loader": "^8.2.4",
  231. "babel-plugin-angularjs-annotate": "^0.10.0",
  232. "babel-plugin-macros": "^3.1.0",
  233. "c8": "^7.2.0",
  234. "chai": "^4.3.6",
  235. "chai-as-promised": "^7.1.1",
  236. "chai-exclude": "^2.0.3",
  237. "cheerio": "^1.0.0-rc.3",
  238. "content-disposition": "^0.5.0",
  239. "copy-webpack-plugin": "^10.2.4",
  240. "css-loader": "^6.7.1",
  241. "css-minimizer-webpack-plugin": "^3.4.1",
  242. "cypress": "^10.0.3",
  243. "es6-promise": "^4.2.8",
  244. "escodegen": "^2.0.0",
  245. "eslint-config-standard-jsx": "^11.0.0-0",
  246. "eslint-plugin-cypress": "^2.12.1",
  247. "eslint-plugin-jsx-a11y": "^6.5.1",
  248. "eslint-plugin-react": "^7.27.0",
  249. "eslint-plugin-react-hooks": "^4.3.0",
  250. "expose-loader": "^3.1.0",
  251. "fetch-mock": "^9.10.2",
  252. "glob": "^7.1.6",
  253. "handlebars-loader": "^1.7.1",
  254. "html-webpack-plugin": "^5.5.0",
  255. "i18next-scanner": "^3.0.0",
  256. "jsdom": "^19.0.0",
  257. "jsdom-global": "^3.0.2",
  258. "karma": "^6.3.17",
  259. "karma-chai-sinon": "^0.1.5",
  260. "karma-chrome-launcher": "^3.1.0",
  261. "karma-mocha": "^2.0.0",
  262. "karma-mocha-reporter": "^2.2.5",
  263. "karma-requirejs": "^1.1.0",
  264. "karma-webpack": "^5.0.0",
  265. "less": "^3.11.1",
  266. "less-loader": "^10.2.0",
  267. "less-plugin-autoprefix": "^2.0.0",
  268. "mensch": "^0.3.4",
  269. "mini-css-extract-plugin": "^2.6.0",
  270. "mkdirp": "0.5.1",
  271. "mocha": "^8.4.0",
  272. "mock-fs": "^5.1.2",
  273. "nock": "^13.1.1",
  274. "pirates": "^4.0.1",
  275. "postcss-loader": "^6.2.1",
  276. "requirejs": "^2.3.6",
  277. "samlp": "^3.4.1",
  278. "sandboxed-module": "https://github.com/overleaf/node-sandboxed-module/archive/cafa2d60f17ce75cc023e6f296eb8de79d92d35d.tar.gz",
  279. "sinon": "^7.5.0",
  280. "sinon-chai": "^3.7.0",
  281. "sinon-mongoose": "^2.3.0",
  282. "socket.io-mock": "^1.3.1",
  283. "terser-webpack-plugin": "^5.3.1",
  284. "timekeeper": "^2.2.0",
  285. "to-string-loader": "^1.2.0",
  286. "typescript": "^4.5.5",
  287. "val-loader": "^4.0.0",
  288. "webpack": "^5.71.0",
  289. "webpack-assets-manifest": "^5.1.0",
  290. "webpack-cli": "^4.9.2",
  291. "webpack-dev-server": "^4.7.4",
  292. "webpack-merge": "^5.8.0",
  293. "worker-loader": "^3.0.8"
  294. }
  295. }