package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. {
  2. "name": "attu",
  3. "version": "2.2.3",
  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.1",
  16. "chalk": "^4.1.2",
  17. "class-sanitizer": "^1.0.1",
  18. "class-transformer": "^0.4.0",
  19. "class-validator": "^0.13.1",
  20. "cors": "^2.8.5",
  21. "cross-env": "^7.0.3",
  22. "csv-writer": "^1.6.0",
  23. "express": "^4.17.1",
  24. "glob": "^7.2.0",
  25. "helmet": "^4.6.0",
  26. "http-errors": "^1.8.1",
  27. "lru-cache": "^6.0.0",
  28. "morgan": "^1.10.0",
  29. "node-cron": "^3.0.0",
  30. "rimraf": "^3.0.2",
  31. "socket.io": "^4.3.1",
  32. "swagger-jsdoc": "^6.1.0",
  33. "swagger-ui-express": "^4.1.6"
  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.12",
  54. "@types/express": "^4.17.13",
  55. "@types/glob": "^7.2.0",
  56. "@types/http-errors": "^1.8.1",
  57. "@types/jest": "^27.0.2",
  58. "@types/lru-cache": "^5.1.1",
  59. "@types/morgan": "^1.9.3",
  60. "@types/node": "^16.11.6",
  61. "@types/node-cron": "^3.0.0",
  62. "@types/supertest": "^2.0.11",
  63. "@types/swagger-jsdoc": "^6.0.1",
  64. "@types/swagger-ui-express": "^4.1.3",
  65. "@types/ws": "^8.2.0",
  66. "electron": "^21.0.1",
  67. "electron-builder": "^23.6.0",
  68. "jest": "^27.3.1",
  69. "nodemon": "^2.0.14",
  70. "prettier": "^2.4.1",
  71. "supertest": "^6.1.6",
  72. "ts-jest": "^27.0.7",
  73. "ts-node": "^10.4.0",
  74. "tslint": "^6.1.3",
  75. "typescript": "^4.4.4"
  76. },
  77. "scripts": {
  78. "prebuild": "tslint -c tslint.json -p tsconfig.json --fix",
  79. "build": "yarn clean && tsc",
  80. "build-electron": "node electron-prebuild && yarn build",
  81. "prestart": "rm -rf dist && yarn build",
  82. "start": "nodemon src/app.ts",
  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": "dmg"
  133. },
  134. "win": {
  135. "icon": "./build/attu.png",
  136. "target": [
  137. {
  138. "target": "nsis"
  139. }
  140. ]
  141. }
  142. }
  143. }