package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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.8",
  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": "^29.1.5",
  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. },
  71. "scripts": {
  72. "prebuild": "tslint -c tslint.json -p tsconfig.json --fix",
  73. "build": "yarn clean && tsc",
  74. "build-electron": "node electron-prebuild && yarn build",
  75. "prestart": "rm -rf dist && yarn build",
  76. "start": "nodemon src/app.ts",
  77. "start:plugin": "yarn build && cross-env PLUGIN_DEV=1 node dist/attu/express/src/app.js",
  78. "start:prod": "node dist/src/app.js",
  79. "start:debug": "DEBUG=express:* nodemon src/app.ts",
  80. "test": "cross-env NODE_ENV=test jest --passWithNoTests",
  81. "test:watch": "jest --watch",
  82. "test:cov": "cross-env NODE_ENV=test jest --passWithNoTests --coverage",
  83. "test:report": "cross-env NODE_ENV=test jest --watchAll=false --coverage --coverageReporters='text-summary'",
  84. "clean": "rimraf dist",
  85. "format": "prettier --write '**/*.{ts,js}'",
  86. "mac": "electron-builder --mac",
  87. "linux": "electron-builder --linux",
  88. "win": "electron-builder --win"
  89. },
  90. "nodemonConfig": {
  91. "ignore": [
  92. "**/*.test.ts",
  93. "**/*.spec.ts",
  94. "build",
  95. ".git",
  96. "node_modules"
  97. ],
  98. "watch": [
  99. "src"
  100. ],
  101. "ext": "ts yml"
  102. },
  103. "homepage": "./",
  104. "main": "electron-starter.js",
  105. "build": {
  106. "appId": "milvus",
  107. "directories": {
  108. "output": "electron-app"
  109. },
  110. "files": [
  111. "build/**/*",
  112. "dist/**/*",
  113. "node_modules/**/*",
  114. "electron-starter.js",
  115. "package.json",
  116. "preload.js"
  117. ],
  118. "linux": {
  119. "icon": "./build/attu.icns",
  120. "target": [
  121. "deb"
  122. ]
  123. },
  124. "mac": {
  125. "icon": "./build/attu.icns",
  126. "target": [
  127. {
  128. "target": "default",
  129. "arch": "universal"
  130. }
  131. ]
  132. },
  133. "win": {
  134. "icon": "./build/attu.png",
  135. "target": [
  136. {
  137. "target": "nsis"
  138. }
  139. ]
  140. }
  141. }
  142. }