package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. {
  2. "name": "attu",
  3. "version": "2.3.2",
  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. "@zilliz/milvus2-sdk-node": "2.3.3",
  16. "axios": "^1.4.0",
  17. "chalk": "^4.1.2",
  18. "class-sanitizer": "^1.0.1",
  19. "class-transformer": "^0.4.0",
  20. "class-validator": "^0.14.0",
  21. "cors": "^2.8.5",
  22. "cross-env": "^7.0.3",
  23. "csv-writer": "^1.6.0",
  24. "express": "^4.18.2",
  25. "glob": "^7.2.0",
  26. "helmet": "^7.0.0",
  27. "http-errors": "^2.0.0",
  28. "lru-cache": "^6.0.0",
  29. "morgan": "^1.10.0",
  30. "node-cron": "^3.0.2",
  31. "rimraf": "^5.0.1",
  32. "socket.io": "^4.7.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/cors": "^2.8.13",
  53. "@types/express": "^4.17.17",
  54. "@types/glob": "^8.1.0",
  55. "@types/http-errors": "^2.0.1",
  56. "@types/jest": "^29.5.3",
  57. "@types/lru-cache": "^5.1.1",
  58. "@types/morgan": "^1.9.4",
  59. "@types/node": "^20.4.2",
  60. "@types/node-cron": "^3.0.8",
  61. "@types/supertest": "^2.0.12",
  62. "@types/ws": "^8.5.5",
  63. "electron": "^25.8.4",
  64. "electron-builder": "^24.6.4",
  65. "jest": "^29.6.1",
  66. "nodemon": "^3.0.1",
  67. "prettier": "^3.0.0",
  68. "supertest": "^6.3.3",
  69. "ts-jest": "^29.1.1",
  70. "ts-node": "^10.9.1",
  71. "tslint": "^6.1.3",
  72. "typescript": "^5.1.6"
  73. },
  74. "scripts": {
  75. "prebuild": "tslint -c tslint.json -p tsconfig.json --fix",
  76. "build": "yarn clean && tsc",
  77. "build-electron": "node electron-prebuild && yarn build",
  78. "prestart": "rm -rf dist && yarn build",
  79. "start": "nodemon src/app.ts",
  80. "start:plugin": "yarn build && cross-env PLUGIN_DEV=1 node dist/attu/express/src/app.js",
  81. "start:prod": "node dist/src/app.js",
  82. "start:debug": "DEBUG=express:* nodemon src/app.ts",
  83. "test": "cross-env NODE_ENV=test jest --passWithNoTests",
  84. "test:watch": "jest --watch",
  85. "test:cov": "cross-env NODE_ENV=test jest --passWithNoTests --coverage",
  86. "test:report": "cross-env NODE_ENV=test jest --watchAll=false --coverage --coverageReporters='text-summary'",
  87. "clean": "rimraf dist",
  88. "format": "prettier --write '**/*.{ts,js}'",
  89. "mac": "electron-builder --mac",
  90. "linux": "electron-builder --linux",
  91. "win": "electron-builder --win"
  92. },
  93. "nodemonConfig": {
  94. "ignore": [
  95. "**/*.test.ts",
  96. "**/*.spec.ts",
  97. "build",
  98. ".git",
  99. "node_modules"
  100. ],
  101. "watch": [
  102. "src"
  103. ],
  104. "ext": "ts yml"
  105. },
  106. "homepage": "./",
  107. "main": "electron-starter.js",
  108. "build": {
  109. "appId": "milvus",
  110. "directories": {
  111. "output": "electron-app"
  112. },
  113. "files": [
  114. "build/**/*",
  115. "dist/**/*",
  116. "node_modules/**/*",
  117. "electron-starter.js",
  118. "package.json",
  119. "preload.js"
  120. ],
  121. "linux": {
  122. "icon": "./build/attu.icns",
  123. "target": [
  124. "deb"
  125. ]
  126. },
  127. "mac": {
  128. "icon": "./build/attu.icns",
  129. "target": [
  130. {
  131. "target": "default",
  132. "arch": "universal"
  133. }
  134. ]
  135. },
  136. "win": {
  137. "icon": "./build/attu.png",
  138. "target": [
  139. {
  140. "target": "nsis"
  141. }
  142. ]
  143. }
  144. }
  145. }