package.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {
  2. "name": "express",
  3. "version": "1.0.0",
  4. "main": "dist/app.js",
  5. "license": "MIT",
  6. "dependencies": {
  7. "@zilliz/milvus2-sdk-node": "^1.0.19",
  8. "chalk": "^4.1.2",
  9. "class-sanitizer": "^1.0.1",
  10. "class-transformer": "^0.4.0",
  11. "class-validator": "^0.13.1",
  12. "cors": "^2.8.5",
  13. "cross-env": "^7.0.3",
  14. "express": "^4.17.1",
  15. "glob": "^7.2.0",
  16. "helmet": "^4.6.0",
  17. "morgan": "^1.10.0",
  18. "node-cron": "^3.0.0",
  19. "rimraf": "^3.0.2",
  20. "socket.io": "^4.3.1",
  21. "swagger-jsdoc": "^6.1.0",
  22. "swagger-ui-express": "^4.1.6"
  23. },
  24. "jest": {
  25. "testEnvironment": "node",
  26. "testTimeout": 10000,
  27. "coveragePathIgnorePatterns": [
  28. "/node_modules/"
  29. ],
  30. "rootDir": "src",
  31. "testRegex": ".*\\.test\\.ts$",
  32. "collectCoverageFrom": [
  33. "**/*.service.{js,ts}"
  34. ],
  35. "transform": {
  36. "^.+\\.(t|j)s$": "ts-jest"
  37. },
  38. "coverageDirectory": "../coverage/"
  39. },
  40. "devDependencies": {
  41. "@types/swagger-jsdoc": "^6.0.1",
  42. "@types/chalk": "^2.2.0",
  43. "@types/cors": "^2.8.12",
  44. "@types/express": "^4.17.13",
  45. "@types/glob": "^7.2.0",
  46. "@types/jest": "^27.0.2",
  47. "@types/node": "^16.11.6",
  48. "@types/node-cron": "^3.0.0",
  49. "@types/supertest": "^2.0.11",
  50. "@types/ws": "^8.2.0",
  51. "jest": "^27.3.1",
  52. "supertest": "^6.1.6",
  53. "ts-jest": "^27.0.7",
  54. "@types/morgan": "^1.9.3",
  55. "@types/swagger-ui-express": "^4.1.3",
  56. "nodemon": "^2.0.14",
  57. "ts-node": "^10.4.0",
  58. "tslint": "^6.1.3",
  59. "typescript": "^4.4.4"
  60. },
  61. "scripts": {
  62. "prebuild": "tslint -c tslint.json -p tsconfig.json --fix",
  63. "build": "yarn clean && tsc",
  64. "prestart": "rm -rf dist && yarn build",
  65. "start": "nodemon ./src/app",
  66. "start:plugin": "yarn build && cross-env PLUGIN_DEV=1 node dist/milvus-insight/express/src/app.js",
  67. "start:prod": "node dist/app.js",
  68. "test": "cross-env NODE_ENV=test jest --passWithNoTests",
  69. "test:watch": "jest --watch",
  70. "test:cov": "cross-env NODE_ENV=test jest --passWithNoTests --coverage",
  71. "test:report": "cross-env NODE_ENV=test jest --watchAll=false --coverage --coverageReporters='text-summary'",
  72. "clean": "rimraf dist"
  73. },
  74. "nodemonConfig": {
  75. "ignore": [
  76. "**/*.test.ts",
  77. "**/*.spec.ts",
  78. "build",
  79. ".git",
  80. "node_modules"
  81. ],
  82. "watch": [
  83. "src"
  84. ],
  85. "ext": "ts"
  86. }
  87. }