package.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {
  2. "name": "spelling-sharelatex",
  3. "author": "ShareLaTeX <team@sharelatex.com>",
  4. "description": "A JSON API wrapper around aspell",
  5. "repository": {
  6. "type": "git",
  7. "url": "https://github.com/sharelatex/spelling-sharelatex.git"
  8. },
  9. "scripts": {
  10. "compile:app": "([ -e app/coffee ] && coffee -m $COFFEE_OPTIONS -o app/js -c app/coffee || echo 'No CoffeeScript folder to compile') && ( [ -e app.coffee ] && coffee -m $COFFEE_OPTIONS -c app.coffee || echo 'No CoffeeScript app to compile')",
  11. "start": "node $NODE_APP_OPTIONS app.js",
  12. "test:acceptance:_run": "mocha --recursive --reporter spec --timeout 15000 --exit $@ test/acceptance/js",
  13. "test:acceptance": "npm run test:acceptance:_run -- --grep=$MOCHA_GREP",
  14. "test:unit:_run": "mocha --recursive --reporter spec $@ test/unit/js",
  15. "test:unit": "npm run test:unit:_run -- --grep=$MOCHA_GREP",
  16. "compile:unit_tests": "[ ! -e test/unit/coffee ] && echo 'No unit tests to compile' || coffee -o test/unit/js -c test/unit/coffee",
  17. "compile:acceptance_tests": "[ ! -e test/acceptance/coffee ] && echo 'No acceptance tests to compile' || coffee -o test/acceptance/js -c test/acceptance/coffee",
  18. "compile:all": "npm run compile:app && npm run compile:unit_tests && npm run compile:acceptance_tests && npm run compile:smoke_tests",
  19. "nodemon": "nodemon --config nodemon.json",
  20. "compile:smoke_tests": "[ ! -e test/smoke/coffee ] && echo 'No smoke tests to compile' || coffee -o test/smoke/js -c test/smoke/coffee",
  21. "lint": "../../node_modules/.bin/eslint --max-warnings 0 --format unix .",
  22. "format": "../../node_modules/.bin/prettier --list-different $PWD/'**/*.js'",
  23. "format:fix": "../../node_modules/.bin/prettier --write $PWD/'**/*.js'",
  24. "lint:fix": "../../node_modules/.bin/eslint --fix ."
  25. },
  26. "version": "0.1.4",
  27. "dependencies": {
  28. "@overleaf/logger": "^3.1.0",
  29. "@overleaf/metrics": "^4.0.0",
  30. "@overleaf/o-error": "^3.0.0",
  31. "@overleaf/settings": "^2.1.1",
  32. "async": "^2.6.3",
  33. "body-parser": "^1.19.0",
  34. "bunyan": "^1.8.15",
  35. "express": "^4.17.1",
  36. "lru-cache": "^5.1.1",
  37. "mongodb": "^3.6.0",
  38. "request": "^2.88.2",
  39. "underscore": "1.13.1"
  40. },
  41. "devDependencies": {
  42. "chai": "^4.2.0",
  43. "chai-as-promised": "^7.1.1",
  44. "mocha": "^8.3.2",
  45. "sandboxed-module": "2.0.4",
  46. "sinon": "^9.0.1"
  47. }
  48. }