package.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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. "update-electron-app": "^3.0.0"
  35. },
  36. "jest": {
  37. "testEnvironment": "node",
  38. "testTimeout": 10000,
  39. "coveragePathIgnorePatterns": [
  40. "/node_modules/"
  41. ],
  42. "rootDir": "src",
  43. "testRegex": ".*\\.test\\.ts$",
  44. "collectCoverageFrom": [
  45. "**/*.service.{js,ts}"
  46. ],
  47. "transform": {
  48. "^.+\\.(t|j)s$": "ts-jest"
  49. },
  50. "coverageDirectory": "../coverage/"
  51. },
  52. "devDependencies": {
  53. "@types/chalk": "^2.2.0",
  54. "@types/cors": "^2.8.13",
  55. "@types/express": "^4.17.17",
  56. "@types/glob": "^8.1.0",
  57. "@types/http-errors": "^2.0.1",
  58. "@types/jest": "^29.5.3",
  59. "@types/lru-cache": "^7.10.10",
  60. "@types/morgan": "^1.9.4",
  61. "@types/node": "^20.4.2",
  62. "@types/node-cron": "^3.0.8",
  63. "@types/supertest": "^2.0.12",
  64. "@types/ws": "^8.5.5",
  65. "electron": "^25.8.4",
  66. "electron-builder": "^24.6.4",
  67. "jest": "^29.6.1",
  68. "nodemon": "^3.0.1",
  69. "prettier": "^3.0.0",
  70. "supertest": "^6.3.3",
  71. "ts-jest": "^29.1.1",
  72. "ts-node": "^10.9.1",
  73. "tslint": "^6.1.3",
  74. "typescript": "^5.1.6"
  75. },
  76. "scripts": {
  77. "prebuild": "tslint -c tslint.json -p tsconfig.json --fix",
  78. "build": "yarn clean && tsc",
  79. "build-electron": "node electron-prebuild && yarn build",
  80. "prestart": "rm -rf dist && yarn build",
  81. "start": "nodemon src/app.ts",
  82. "start:app": "electron .",
  83. "start:plugin": "yarn build && cross-env PLUGIN_DEV=1 node dist/attu/express/src/app.js",
  84. "start:prod": "node dist/src/app.js",
  85. "start:debug": "DEBUG=express:* nodemon src/app.ts",
  86. "test": "cross-env NODE_ENV=test jest --passWithNoTests",
  87. "test:watch": "jest --watch",
  88. "test:cov": "cross-env NODE_ENV=test jest --passWithNoTests --coverage",
  89. "test:report": "cross-env NODE_ENV=test jest --watchAll=false --coverage --coverageReporters='text-summary'",
  90. "clean": "rimraf dist",
  91. "format": "prettier --write '**/*.{ts,js}'",
  92. "mac": "electron-builder --mac",
  93. "linux": "electron-builder --linux",
  94. "win": "electron-builder --win"
  95. },
  96. "nodemonConfig": {
  97. "ignore": [
  98. "**/*.test.ts",
  99. "**/*.spec.ts",
  100. "build",
  101. ".git",
  102. "node_modules"
  103. ],
  104. "watch": [
  105. "src"
  106. ],
  107. "ext": "ts yml"
  108. },
  109. "homepage": "./",
  110. "main": "electron-starter.js",
  111. "build": {
  112. "appId": "milvus",
  113. "directories": {
  114. "output": "electron-app"
  115. },
  116. "files": [
  117. "build/**/*",
  118. "dist/**/*",
  119. "node_modules/**/*",
  120. "electron-starter.js",
  121. "package.json",
  122. "preload.js"
  123. ],
  124. "linux": {
  125. "icon": "./build/attu.icns",
  126. "target": [
  127. "deb"
  128. ]
  129. },
  130. "mac": {
  131. "icon": "./build/attu.icns",
  132. "target": [
  133. {
  134. "target": "default",
  135. "arch": "universal"
  136. }
  137. ]
  138. },
  139. "win": {
  140. "icon": "./build/attu.png",
  141. "target": [
  142. {
  143. "target": "nsis"
  144. }
  145. ]
  146. }
  147. }
  148. }