package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. {
  2. "name": "attu",
  3. "version": "2.5.7",
  4. "license": "MIT",
  5. "author": {
  6. "name": "zilliz",
  7. "email": "zilliz@zilliz.com"
  8. },
  9. "description": "Attu helps to manage Milvus easily",
  10. "repository": {
  11. "type": "git",
  12. "url": "https://github.com/zilliztech/attu"
  13. },
  14. "dependencies": {
  15. "@json2csv/plainjs": "^7.0.3",
  16. "@zilliz/milvus2-sdk-node": "2.5.8",
  17. "axios": "^1.8.2",
  18. "chalk": "4.1.2",
  19. "class-sanitizer": "^1.0.1",
  20. "class-transformer": "^0.5.1",
  21. "class-validator": "^0.14.1",
  22. "compression": "^1.7.5",
  23. "cors": "^2.8.5",
  24. "cross-env": "^7.0.3",
  25. "express": "^4.21.2",
  26. "helmet": "^8.0.0",
  27. "http-errors": "^2.0.0",
  28. "lru-cache": "^10.2.0",
  29. "morgan": "^1.10.0",
  30. "node-cron": "^3.0.3",
  31. "socket.io": "^4.8.1"
  32. },
  33. "jest": {
  34. "testEnvironment": "node",
  35. "testTimeout": 10000,
  36. "coveragePathIgnorePatterns": [
  37. "/node_modules/"
  38. ],
  39. "rootDir": "src",
  40. "testRegex": ".*\\.test\\.ts$",
  41. "collectCoverageFrom": [
  42. "**/*.service.{js,ts}"
  43. ],
  44. "transform": {
  45. "^.+\\.(t|j)s$": "ts-jest"
  46. },
  47. "coverageDirectory": "../coverage/"
  48. },
  49. "devDependencies": {
  50. "@types/chalk": "^2.2.0",
  51. "@types/compression": "^1.7.5",
  52. "@types/cors": "^2.8.17",
  53. "@types/express": "^4.17.21",
  54. "@types/http-errors": "^2.0.4",
  55. "@types/lru-cache": "^7.10.10",
  56. "@types/morgan": "^1.9.4",
  57. "@types/node": "^20.4.2",
  58. "@types/node-cron": "^3.0.8",
  59. "electron": "^35.1.5",
  60. "electron-builder": "^26.0.12",
  61. "jest": "^29.7.0",
  62. "nodemon": "^3.1.0",
  63. "prettier": "^3.2.5",
  64. "rimraf": "^6.0.1",
  65. "ts-jest": "^29.1.1",
  66. "tslint": "^6.1.3",
  67. "typescript": "^5.4.5"
  68. },
  69. "resolutions": {
  70. "ws": "^8.17.1"
  71. },
  72. "scripts": {
  73. "prebuild": "tslint -c tslint.json -p tsconfig.json --fix",
  74. "build": "yarn clean && tsc",
  75. "build-electron": "node electron-prebuild && yarn build",
  76. "electron": "electron .",
  77. "prestart": "rm -rf dist && yarn build",
  78. "start": "nodemon src/app.ts",
  79. "start:prod": "node dist/src/app.js",
  80. "start:debug": "DEBUG=express:* nodemon src/app.ts",
  81. "test": "cross-env NODE_ENV=test jest --passWithNoTests",
  82. "test:watch": "jest --watch",
  83. "test:cov": "cross-env NODE_ENV=test jest --passWithNoTests --coverage",
  84. "test:report": "cross-env NODE_ENV=test jest --watchAll=false --coverage --coverageReporters='text-summary'",
  85. "clean": "rimraf dist",
  86. "format": "prettier --write '**/*.{ts,js}'",
  87. "mac": "electron-builder --mac",
  88. "linux": "electron-builder --linux",
  89. "win": "electron-builder --win"
  90. },
  91. "nodemonConfig": {
  92. "ignore": [
  93. "**/*.test.ts",
  94. "**/*.spec.ts",
  95. "build",
  96. ".git",
  97. "node_modules"
  98. ],
  99. "watch": [
  100. "src"
  101. ],
  102. "ext": "ts yml"
  103. },
  104. "homepage": "./",
  105. "main": "electron-starter.js",
  106. "build": {
  107. "appId": "milvus",
  108. "directories": {
  109. "output": "electron-app"
  110. },
  111. "files": [
  112. "build/**/*",
  113. "dist/**/*",
  114. "node_modules/**/*",
  115. "electron-starter.js",
  116. "package.json",
  117. "preload.js"
  118. ],
  119. "linux": {
  120. "icon": "./build/attu.icns",
  121. "target": [
  122. "deb"
  123. ]
  124. },
  125. "mac": {
  126. "icon": "./build/attu.icns",
  127. "target": [
  128. {
  129. "target": "default",
  130. "arch": [
  131. "arm64",
  132. "x64"
  133. ]
  134. }
  135. ],
  136. "artifactName": "attu-${os}-${arch}-v${version}.${ext}"
  137. },
  138. "win": {
  139. "icon": "./build/attu.png",
  140. "target": [
  141. {
  142. "target": "nsis"
  143. }
  144. ]
  145. }
  146. }
  147. }