package.json 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. {
  2. "name": "web",
  3. "private": true,
  4. "type": "module",
  5. "scripts": {
  6. "dev": "concurrently \"pnpm run dev:mini\" \"pnpm run dev:web\" \"pnpm run dev:weapp\"",
  7. "dev:web": "PORT=8080 node server",
  8. "dev:mini": "cd mini && pnpm run dev:h5",
  9. "dev:weapp": "cd mini && pnpm run dev:weapp",
  10. "build": "npm run build:client && npm run build:server",
  11. "build:client": "cross-env NODE_ENV=production vite build --outDir dist/client --manifest --mode production",
  12. "build:server": "cross-env NODE_ENV=production vite build --ssr src/server/index.tsx --outDir dist/server --mode production",
  13. "start": "PORT=8080 cross-env NODE_ENV=production node server",
  14. "test": "vitest",
  15. "test:coverage": "vitest --coverage",
  16. "test:api": "vitest run --project=node",
  17. "test:components": "vitest run --project=happy-dom",
  18. "test:integration": "vitest run --project=happy-dom",
  19. "test:api:coverage": "vitest run --coverage --project=node",
  20. "test:components:coverage": "vitest run --coverage --project=happy-dom",
  21. "test:unit": "vitest run tests/unit",
  22. "test:integration:client": "vitest run tests/integration/client",
  23. "test:e2e": "playwright test --config=tests/e2e/playwright.config.ts",
  24. "test:e2e:ui": "playwright test --config=tests/e2e/playwright.config.ts --ui",
  25. "test:e2e:debug": "playwright test --config=tests/e2e/playwright.config.ts --debug",
  26. "test:e2e:chromium": "playwright test --config=tests/e2e/playwright.config.ts --project=chromium",
  27. "db:migrate": "tsx scripts/migrate.ts",
  28. "db:seed": "tsx scripts/seed.ts",
  29. "db:reset": "tsx scripts/reset-db.ts",
  30. "db:backup": "tsx src/server/utils/backup.ts backup",
  31. "db:restore": "tsx src/server/utils/backup.ts restore",
  32. "db:backup:list": "tsx src/server/utils/backup.ts list",
  33. "db:backup:latest": "tsx src/server/utils/backup.ts latest",
  34. "db:backup:cleanup": "tsx src/server/utils/backup.ts cleanup",
  35. "test:analyze": "node scripts/analyze-test-results.js",
  36. "lint": "eslint . --ext .ts,.tsx",
  37. "lint:fix": "eslint . --ext .ts,.tsx --fix",
  38. "typecheck": "tsc --noEmit --project ."
  39. },
  40. "dependencies": {
  41. "@ant-design/icons": "^6.0.0",
  42. "@d8d/advertisements-module": "workspace:*",
  43. "@d8d/auth-module": "workspace:*",
  44. "@d8d/delivery-address-module": "workspace:*",
  45. "@d8d/file-module": "workspace:*",
  46. "@d8d/geo-areas": "workspace:*",
  47. "@d8d/goods-module": "workspace:*",
  48. "@d8d/merchant-module": "workspace:*",
  49. "@d8d/mini-payment": "workspace:*",
  50. "@d8d/orders-module": "workspace:*",
  51. "@d8d/server": "workspace:*",
  52. "@d8d/supplier-module": "workspace:*",
  53. "@d8d/user-management-ui-mt": "workspace:*",
  54. "@d8d/auth-management-ui-mt": "workspace:*",
  55. "@d8d/file-management-ui-mt": "workspace:*",
  56. "@d8d/area-management-ui-mt": "workspace:*",
  57. "@d8d/supplier-management-ui-mt": "workspace:*",
  58. "@d8d/merchant-management-ui-mt": "workspace:*",
  59. "@d8d/order-management-ui-mt": "workspace:*",
  60. "@d8d/advertisement-type-management-ui-mt": "workspace:*",
  61. "@d8d/goods-management-ui-mt": "workspace:*",
  62. "@d8d/goods-category-management-ui-mt": "workspace:*",
  63. "@d8d/delivery-address-management-ui-mt": "workspace:*",
  64. "@d8d/advertisement-management-ui-mt": "workspace:*",
  65. "@d8d/tenant-management-ui": "workspace:*",
  66. "@d8d/user-module": "workspace:*",
  67. "@heroicons/react": "^2.2.0",
  68. "@hono/node-server": "^1.17.1",
  69. "@hono/react-renderer": "^1.0.1",
  70. "@hono/swagger-ui": "^0.5.2",
  71. "@hono/zod-openapi": "^1.0.2",
  72. "@hookform/resolvers": "^5.2.1",
  73. "@radix-ui/react-accordion": "^1.2.11",
  74. "@radix-ui/react-alert-dialog": "^1.1.14",
  75. "@radix-ui/react-aspect-ratio": "^1.1.7",
  76. "@radix-ui/react-avatar": "^1.1.10",
  77. "@radix-ui/react-checkbox": "^1.3.2",
  78. "@radix-ui/react-collapsible": "^1.1.11",
  79. "@radix-ui/react-context-menu": "^2.2.15",
  80. "@radix-ui/react-dialog": "^1.1.14",
  81. "@radix-ui/react-dropdown-menu": "^2.1.15",
  82. "@radix-ui/react-hover-card": "^1.1.14",
  83. "@radix-ui/react-label": "^2.1.7",
  84. "@radix-ui/react-menubar": "^1.1.15",
  85. "@radix-ui/react-navigation-menu": "^1.2.13",
  86. "@radix-ui/react-popover": "^1.1.14",
  87. "@radix-ui/react-progress": "^1.1.7",
  88. "@radix-ui/react-radio-group": "^1.3.7",
  89. "@radix-ui/react-scroll-area": "^1.2.9",
  90. "@radix-ui/react-select": "^2.2.5",
  91. "@radix-ui/react-separator": "^1.1.7",
  92. "@radix-ui/react-slider": "^1.3.5",
  93. "@radix-ui/react-slot": "^1.2.3",
  94. "@radix-ui/react-switch": "^1.2.5",
  95. "@radix-ui/react-tabs": "^1.1.12",
  96. "@radix-ui/react-toggle": "^1.1.9",
  97. "@radix-ui/react-toggle-group": "^1.1.10",
  98. "@radix-ui/react-tooltip": "^1.2.7",
  99. "@tanstack/react-query": "^5.90.9",
  100. "@types/node-cron": "^3.0.11",
  101. "axios": "^1.11.0",
  102. "bcrypt": "^6.0.0",
  103. "class-variance-authority": "^0.7.1",
  104. "clsx": "^2.1.1",
  105. "cmdk": "^1.1.1",
  106. "compression": "^1.8.0",
  107. "date-fns": "^4.1.0",
  108. "dayjs": "^1.11.13",
  109. "debug": "^4.4.1",
  110. "dotenv": "^17.2.1",
  111. "embla-carousel-react": "^8.6.0",
  112. "formdata-node": "^6.0.3",
  113. "hono": "^4.8.5",
  114. "input-otp": "^1.4.2",
  115. "ioredis": "^5.6.1",
  116. "jsonwebtoken": "^9.0.2",
  117. "lucide-react": "^0.536.0",
  118. "minio": "^8.0.5",
  119. "next-themes": "^0.4.6",
  120. "node-cron": "^4.2.1",
  121. "pg": "^8.16.3",
  122. "pg-dump-restore": "1.0.13",
  123. "rc-upload": "^4.9.2",
  124. "react": "^19.1.0",
  125. "react-day-picker": "^9.8.1",
  126. "react-dom": "^19.1.0",
  127. "react-hook-form": "^7.61.1",
  128. "react-resizable-panels": "^3.0.4",
  129. "react-router": "^7.7.0",
  130. "react-router-dom": "^7.7.0",
  131. "react-toastify": "^11.0.5",
  132. "recharts": "2.15.4",
  133. "reflect-metadata": "^0.2.2",
  134. "sirv": "^3.0.1",
  135. "sonner": "^2.0.7",
  136. "tailwind-merge": "^3.3.1",
  137. "tw-animate-css": "^1.3.6",
  138. "typeorm": "^0.3.25",
  139. "uuid": "^11.1.0",
  140. "vaul": "^1.1.2",
  141. "zod": "^4.0.15"
  142. },
  143. "devDependencies": {
  144. "@eslint/js": "^9.35.0",
  145. "@playwright/test": "1.55.0",
  146. "@tailwindcss/vite": "^4.1.11",
  147. "@testing-library/jest-dom": "^6.8.0",
  148. "@testing-library/react": "^16.3.0",
  149. "@testing-library/user-event": "^14.6.1",
  150. "@types/bcrypt": "^6.0.0",
  151. "@types/debug": "^4.1.12",
  152. "@types/jsonwebtoken": "^9.0.10",
  153. "@types/node": "^24.0.10",
  154. "@types/react": "^19.1.8",
  155. "@types/react-dom": "^19.1.6",
  156. "@typescript-eslint/eslint-plugin": "^8.43.0",
  157. "@typescript-eslint/parser": "^8.43.0",
  158. "@vitejs/plugin-react-swc": "^3.10.2",
  159. "@vitest/coverage-v8": "^3.2.4",
  160. "concurrently": "^9.2.0",
  161. "cross-env": "^7.0.3",
  162. "eslint": "^9.35.0",
  163. "eslint-plugin-react": "^7.37.5",
  164. "eslint-plugin-react-hooks": "^5.2.0",
  165. "globals": "^16.4.0",
  166. "happy-dom": "^18.0.1",
  167. "tailwindcss": "^4.1.11",
  168. "tsx": "^4.20.3",
  169. "typescript": "~5.8.3",
  170. "vite": "^7.0.0",
  171. "vite-plugin-iframe-communicator": "^0.0.10",
  172. "vite-progress-tracking-plugin": "^0.0.2",
  173. "vitest": "^3.2.4"
  174. }
  175. }