package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. {
  2. "name": "attu",
  3. "version": "2.3.8",
  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.3.5",
  17. "axios": "^1.6.2",
  18. "chalk": "^4.1.2",
  19. "class-sanitizer": "^1.0.1",
  20. "class-transformer": "^0.4.0",
  21. "class-validator": "^0.14.0",
  22. "cors": "^2.8.5",
  23. "cross-env": "^7.0.3",
  24. "csv-writer": "^1.6.0",
  25. "express": "^4.18.2",
  26. "glob": "^7.2.0",
  27. "helmet": "^7.0.0",
  28. "http-errors": "^2.0.0",
  29. "lru-cache": "^10.1.0",
  30. "morgan": "^1.10.0",
  31. "node-cron": "^3.0.2",
  32. "rimraf": "^5.0.1",
  33. "socket.io": "^4.7.1"
  34. },
  35. "jest": {
  36. "testEnvironment": "node",
  37. "testTimeout": 10000,
  38. "coveragePathIgnorePatterns": [
  39. "/node_modules/"
  40. ],
  41. "rootDir": "src",
  42. "testRegex": ".*\\.test\\.ts$",
  43. "collectCoverageFrom": [
  44. "**/*.service.{js,ts}"
  45. ],
  46. "transform": {
  47. "^.+\\.(t|j)s$": "ts-jest"
  48. },
  49. "coverageDirectory": "../coverage/"
  50. },
  51. "devDependencies": {
  52. "@types/chalk": "^2.2.0",
  53. "@types/cors": "^2.8.13",
  54. "@types/express": "^4.17.17",
  55. "@types/glob": "^8.1.0",
  56. "@types/http-errors": "^2.0.1",
  57. "@types/jest": "^29.5.3",
  58. "@types/lru-cache": "^7.10.10",
  59. "@types/morgan": "^1.9.4",
  60. "@types/node": "^20.4.2",
  61. "@types/node-cron": "^3.0.8",
  62. "@types/supertest": "^2.0.12",
  63. "@types/ws": "^8.5.5",
  64. "electron": "^25.8.4",
  65. "electron-builder": "^24.6.4",
  66. "jest": "^29.6.1",
  67. "nodemon": "^3.0.1",
  68. "prettier": "^3.0.0",
  69. "supertest": "^6.3.3",
  70. "ts-jest": "^29.1.1",
  71. "ts-node": "^10.9.1",
  72. "tslint": "^6.1.3",
  73. "typescript": "^5.1.6"
  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": "universal"
  134. }
  135. ]
  136. },
  137. "win": {
  138. "icon": "./build/attu.png",
  139. "target": [
  140. {
  141. "target": "nsis"
  142. }
  143. ]
  144. }
  145. }
  146. }