package.json 10 KB

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