package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. {
  2. "name": "milvus-insight",
  3. "version": "0.1.8",
  4. "license": "MIT",
  5. "author": {
  6. "name": "ued",
  7. "email": "ued@zilliz.com"
  8. },
  9. "description": "Milvus Insight help to manage Milvus easily",
  10. "repository": {
  11. "type": "git",
  12. "url": "https://github.com/zilliztech/milvus-insight"
  13. },
  14. "dependencies": {
  15. "@zilliz/milvus2-sdk-node": "^1.0.19",
  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. "express": "^4.17.1",
  23. "glob": "^7.2.0",
  24. "helmet": "^4.6.0",
  25. "http-errors": "^1.8.1",
  26. "lru-cache": "^6.0.0",
  27. "morgan": "^1.10.0",
  28. "node-cron": "^3.0.0",
  29. "rimraf": "^3.0.2",
  30. "socket.io": "^4.3.1",
  31. "swagger-jsdoc": "^6.1.0",
  32. "swagger-ui-express": "^4.1.6"
  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.12",
  53. "@types/express": "^4.17.13",
  54. "@types/glob": "^7.2.0",
  55. "@types/http-errors": "^1.8.1",
  56. "@types/jest": "^27.0.2",
  57. "@types/lru-cache": "^5.1.1",
  58. "@types/morgan": "^1.9.3",
  59. "@types/node": "^16.11.6",
  60. "@types/node-cron": "^3.0.0",
  61. "@types/supertest": "^2.0.11",
  62. "@types/swagger-jsdoc": "^6.0.1",
  63. "@types/swagger-ui-express": "^4.1.3",
  64. "@types/ws": "^8.2.0",
  65. "electron": "^16.0.2",
  66. "electron-builder": "^22.14.5",
  67. "jest": "^27.3.1",
  68. "nodemon": "^2.0.14",
  69. "prettier": "^2.4.1",
  70. "supertest": "^6.1.6",
  71. "ts-jest": "^27.0.7",
  72. "ts-node": "^10.4.0",
  73. "tslint": "^6.1.3",
  74. "typescript": "^4.4.4"
  75. },
  76. "scripts": {
  77. "prebuild": "tslint -c tslint.json -p tsconfig.json --fix",
  78. "build": "yarn clean && tsc",
  79. "prestart": "rm -rf dist && yarn build",
  80. "start": "nodemon dist/app.js",
  81. "start:plugin": "yarn build && cross-env PLUGIN_DEV=1 node dist/milvus-insight/express/src/app.js",
  82. "start:prod": "node dist/app.js",
  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/milvus-icon.icns",
  123. "target": [
  124. "deb"
  125. ]
  126. },
  127. "mac": {
  128. "icon": "./build/milvus-icon.icns",
  129. "target": "dmg"
  130. },
  131. "win": {
  132. "icon": "./build/milvus-icon.png",
  133. "target": [
  134. {
  135. "target": "nsis"
  136. }
  137. ]
  138. }
  139. }
  140. }