package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. {
  2. "name": "attu",
  3. "version": "2.2.7",
  4. "license": "MIT",
  5. "author": {
  6. "name": "zilliz",
  7. "email": "zilliz@zilliz.com"
  8. },
  9. "description": "Attu help 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.2.17",
  16. "axios": "^1.3.2",
  17. "chalk": "^4.1.2",
  18. "class-sanitizer": "^1.0.1",
  19. "class-transformer": "^0.4.0",
  20. "class-validator": "^0.13.1",
  21. "cors": "^2.8.5",
  22. "cross-env": "^7.0.3",
  23. "csv-writer": "^1.6.0",
  24. "express": "^4.17.1",
  25. "glob": "^7.2.0",
  26. "helmet": "^4.6.0",
  27. "http-errors": "^1.8.1",
  28. "lru-cache": "^6.0.0",
  29. "morgan": "^1.10.0",
  30. "node-cron": "^3.0.0",
  31. "rimraf": "^3.0.2",
  32. "socket.io": "^4.3.1",
  33. "swagger-jsdoc": "^6.1.0",
  34. "swagger-ui-express": "^4.1.6"
  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.12",
  55. "@types/express": "^4.17.13",
  56. "@types/glob": "^7.2.0",
  57. "@types/http-errors": "^1.8.1",
  58. "@types/jest": "^27.0.2",
  59. "@types/lru-cache": "^5.1.1",
  60. "@types/morgan": "^1.9.3",
  61. "@types/node": "^16.11.6",
  62. "@types/node-cron": "^3.0.0",
  63. "@types/supertest": "^2.0.11",
  64. "@types/swagger-jsdoc": "^6.0.1",
  65. "@types/swagger-ui-express": "^4.1.3",
  66. "@types/ws": "^8.2.0",
  67. "electron": "^21.0.1",
  68. "electron-builder": "^23.6.0",
  69. "jest": "^27.3.1",
  70. "nodemon": "^2.0.14",
  71. "prettier": "^2.4.1",
  72. "supertest": "^6.1.6",
  73. "ts-jest": "^27.0.7",
  74. "ts-node": "^10.4.0",
  75. "tslint": "^6.1.3",
  76. "typescript": "^4.4.4"
  77. },
  78. "scripts": {
  79. "prebuild": "tslint -c tslint.json -p tsconfig.json --fix",
  80. "build": "yarn clean && tsc",
  81. "build-electron": "node electron-prebuild && yarn build",
  82. "prestart": "rm -rf dist && yarn build",
  83. "start": "nodemon src/app.ts",
  84. "start:plugin": "yarn build && cross-env PLUGIN_DEV=1 node dist/attu/express/src/app.js",
  85. "start:prod": "node dist/src/app.js",
  86. "start:debug": "DEBUG=express:* nodemon src/app.ts",
  87. "test": "cross-env NODE_ENV=test jest --passWithNoTests",
  88. "test:watch": "jest --watch",
  89. "test:cov": "cross-env NODE_ENV=test jest --passWithNoTests --coverage",
  90. "test:report": "cross-env NODE_ENV=test jest --watchAll=false --coverage --coverageReporters='text-summary'",
  91. "clean": "rimraf dist",
  92. "format": "prettier --write '**/*.{ts,js}'",
  93. "mac": "electron-builder --mac",
  94. "linux": "electron-builder --linux",
  95. "win": "electron-builder --win"
  96. },
  97. "nodemonConfig": {
  98. "ignore": [
  99. "**/*.test.ts",
  100. "**/*.spec.ts",
  101. "build",
  102. ".git",
  103. "node_modules"
  104. ],
  105. "watch": [
  106. "src"
  107. ],
  108. "ext": "ts yml"
  109. },
  110. "homepage": "./",
  111. "main": "electron-starter.js",
  112. "build": {
  113. "appId": "milvus",
  114. "directories": {
  115. "output": "electron-app"
  116. },
  117. "files": [
  118. "build/**/*",
  119. "dist/**/*",
  120. "node_modules/**/*",
  121. "electron-starter.js",
  122. "package.json",
  123. "preload.js"
  124. ],
  125. "linux": {
  126. "icon": "./build/attu.icns",
  127. "target": [
  128. "deb"
  129. ]
  130. },
  131. "mac": {
  132. "icon": "./build/attu.icns",
  133. "target": "dmg"
  134. },
  135. "win": {
  136. "icon": "./build/attu.png",
  137. "target": [
  138. {
  139. "target": "nsis"
  140. }
  141. ]
  142. }
  143. }
  144. }