package.json 3.6 KB

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