package.json 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 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": "node --watch app.js",
  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. "types:check": "tsc --noEmit"
  24. },
  25. "version": "0.1.4",
  26. "dependencies": {
  27. "@overleaf/logger": "*",
  28. "@overleaf/metrics": "*",
  29. "@overleaf/o-error": "*",
  30. "@overleaf/settings": "*",
  31. "async": "^3.2.5",
  32. "body-parser": "^1.20.3",
  33. "bunyan": "^1.8.15",
  34. "express": "^4.21.0",
  35. "lru-cache": "^5.1.1",
  36. "request": "^2.88.2",
  37. "underscore": "1.13.1"
  38. },
  39. "devDependencies": {
  40. "chai": "^4.3.6",
  41. "chai-as-promised": "^7.1.1",
  42. "esmock": "^2.6.3",
  43. "mocha": "^10.2.0",
  44. "sinon": "^9.2.4",
  45. "typescript": "^5.0.4"
  46. }
  47. }