package.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "name": "@overleaf/spelling",
  3. "description": "A JSON API wrapper around aspell",
  4. "private": true,
  5. "main": "app.js",
  6. "type": "module",
  7. "scripts": {
  8. "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')",
  9. "start": "node $NODE_APP_OPTIONS app.js",
  10. "test:acceptance:_run": "LOG_LEVEL=fatal mocha --loader=esmock --recursive --reporter spec --timeout 15000 --exit $@ test/acceptance/js",
  11. "test:acceptance": "npm run test:acceptance:_run -- --grep=$MOCHA_GREP",
  12. "test:unit:_run": "LOG_LEVEL=fatal mocha --loader=esmock --recursive --reporter spec $@ test/unit/js",
  13. "test:unit": "npm run test:unit:_run -- --grep=$MOCHA_GREP",
  14. "compile:unit_tests": "[ ! -e test/unit/coffee ] && echo 'No unit tests to compile' || coffee -o test/unit/js -c test/unit/coffee",
  15. "compile:acceptance_tests": "[ ! -e test/acceptance/coffee ] && echo 'No acceptance tests to compile' || coffee -o test/acceptance/js -c test/acceptance/coffee",
  16. "compile:all": "npm run compile:app && npm run compile:unit_tests && npm run compile:acceptance_tests && npm run compile:smoke_tests",
  17. "nodemon": "nodemon --config nodemon.json",
  18. "compile:smoke_tests": "[ ! -e test/smoke/coffee ] && echo 'No smoke tests to compile' || coffee -o test/smoke/js -c test/smoke/coffee",
  19. "lint": "eslint --max-warnings 0 --format unix .",
  20. "format": "prettier --list-different $PWD/'**/*.js'",
  21. "format:fix": "prettier --write $PWD/'**/*.js'",
  22. "lint:fix": "eslint --fix ."
  23. },
  24. "version": "0.1.4",
  25. "dependencies": {
  26. "@overleaf/logger": "*",
  27. "@overleaf/metrics": "*",
  28. "@overleaf/o-error": "*",
  29. "@overleaf/settings": "*",
  30. "async": "^3.2.2",
  31. "body-parser": "^1.19.0",
  32. "bunyan": "^1.8.15",
  33. "express": "^4.18.2",
  34. "lru-cache": "^5.1.1",
  35. "request": "^2.88.2",
  36. "underscore": "1.13.1"
  37. },
  38. "devDependencies": {
  39. "chai": "^4.3.6",
  40. "chai-as-promised": "^7.1.1",
  41. "esmock": "^2.1.0",
  42. "mocha": "^10.2.0",
  43. "sinon": "^9.2.4"
  44. }
  45. }