package.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. {
  2. "name": "attu",
  3. "version": "2.4.3",
  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.4.3",
  17. "axios": "^1.7.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. "cors": "^2.8.5",
  23. "cross-env": "^7.0.3",
  24. "csv-writer": "^1.6.0",
  25. "express": "^4.19.2",
  26. "helmet": "^7.1.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.7.5"
  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/cors": "^2.8.17",
  52. "@types/express": "^4.17.21",
  53. "@types/http-errors": "^2.0.4",
  54. "@types/jest": "^29.5.12",
  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. "@types/supertest": "^6.0.2",
  60. "@types/ws": "^8.5.10",
  61. "electron": "^30.0.8",
  62. "electron-builder": "^24.13.3",
  63. "jest": "^29.7.0",
  64. "nodemon": "^3.1.0",
  65. "prettier": "^3.2.5",
  66. "rimraf": "^5.0.5",
  67. "supertest": "^6.3.4",
  68. "ts-jest": "^29.1.1",
  69. "tslint": "^6.1.3",
  70. "typescript": "^5.4.5"
  71. },
  72. "resolutions": {
  73. "ws": "^8.17.1"
  74. },
  75. "scripts": {
  76. "prebuild": "tslint -c tslint.json -p tsconfig.json --fix",
  77. "build": "yarn clean && tsc",
  78. "build-electron": "node electron-prebuild && yarn build",
  79. "prestart": "rm -rf dist && yarn build",
  80. "start": "nodemon src/app.ts",
  81. "start:plugin": "yarn build && cross-env PLUGIN_DEV=1 node dist/attu/express/src/app.js",
  82. "start:prod": "node dist/src/app.js",
  83. "start:debug": "DEBUG=express:* nodemon src/app.ts",
  84. "test": "cross-env NODE_ENV=test jest --passWithNoTests",
  85. "test:watch": "jest --watch",
  86. "test:cov": "cross-env NODE_ENV=test jest --passWithNoTests --coverage",
  87. "test:report": "cross-env NODE_ENV=test jest --watchAll=false --coverage --coverageReporters='text-summary'",
  88. "clean": "rimraf dist",
  89. "format": "prettier --write '**/*.{ts,js}'",
  90. "mac": "electron-builder --mac",
  91. "linux": "electron-builder --linux",
  92. "win": "electron-builder --win"
  93. },
  94. "nodemonConfig": {
  95. "ignore": [
  96. "**/*.test.ts",
  97. "**/*.spec.ts",
  98. "build",
  99. ".git",
  100. "node_modules"
  101. ],
  102. "watch": [
  103. "src"
  104. ],
  105. "ext": "ts yml"
  106. },
  107. "homepage": "./",
  108. "main": "electron-starter.js",
  109. "build": {
  110. "appId": "milvus",
  111. "directories": {
  112. "output": "electron-app"
  113. },
  114. "files": [
  115. "build/**/*",
  116. "dist/**/*",
  117. "node_modules/**/*",
  118. "electron-starter.js",
  119. "package.json",
  120. "preload.js"
  121. ],
  122. "linux": {
  123. "icon": "./build/attu.icns",
  124. "target": [
  125. "deb"
  126. ]
  127. },
  128. "mac": {
  129. "icon": "./build/attu.icns",
  130. "target": [
  131. {
  132. "target": "default",
  133. "arch": [
  134. "arm64",
  135. "x64"
  136. ]
  137. }
  138. ],
  139. "artifactName": "attu-${os}-${arch}-v${version}.${ext}"
  140. },
  141. "win": {
  142. "icon": "./build/attu.png",
  143. "target": [
  144. {
  145. "target": "nsis"
  146. }
  147. ]
  148. }
  149. }
  150. }