package.json 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {
  2. "name": "tg-live-game-web",
  3. "private": true,
  4. "version": "1.0.15",
  5. "type": "module",
  6. "scripts": {
  7. "dev": "vite",
  8. "build": "vite build",
  9. "preview": "vite preview",
  10. "lint": "eslint . --ext .vue,.js,.jsx,.ts,.tsx",
  11. "lint:fix": "eslint . --ext .vue,.js,.jsx,.ts,.tsx --fix",
  12. "prettier": "prettier --write .",
  13. "format": "prettier --write ./src",
  14. "format-staged": "git diff --name-only --cached --diff-filter=ACMRT | grep -E '\\.(js|ts|jsx|tsx|css|scss|json|md|vue)$' | xargs npx prettier --write",
  15. "lint-staged": "lint-staged",
  16. "test": "vitest",
  17. "test:run": "vitest run",
  18. "test:ui": "vitest --ui",
  19. "test:coverage": "vitest run --coverage",
  20. "test:e2e": "playwright test",
  21. "test:e2e:ui": "playwright test --ui",
  22. "type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
  23. "prepare": "husky install",
  24. "deploy": "wrangler pages deploy dist --project-name=tg-live-game-web --branch=main",
  25. "deploy:preview": "wrangler pages deploy dist --project-name=tg-live-game-web --branch=preview",
  26. "build:deploy": "pnpm run build && pnpm run deploy",
  27. "i18n": "i18next-scanner --config i18next-scanner.config.cjs && node scripts/sort-json.cjs",
  28. "i18n:scan": "i18next-scanner --config i18next-scanner.config.cjs"
  29. },
  30. "lint-staged": {
  31. "*.{vue,js,ts}": [
  32. "prettier --write"
  33. ]
  34. },
  35. "dependencies": {
  36. "@element-plus/icons-vue": "^2.1.0",
  37. "@vueuse/core": "^14.1.0",
  38. "axios": "^1.4.0",
  39. "dayjs": "^1.11.19",
  40. "element-plus": "2.7.5",
  41. "hls.js": "^1.4.10",
  42. "lodash-es": "^4.17.22",
  43. "nprogress": "^0.2.0",
  44. "pinia": "^2.0.36",
  45. "sass": "^1.62.1",
  46. "vue": "^3.5.13",
  47. "vue-i18n": "^11.2.8",
  48. "vue-router": "^4.2.0"
  49. },
  50. "devDependencies": {
  51. "@commitlint/cli": "^12.1.1",
  52. "@commitlint/config-conventional": "^12.1.1",
  53. "@iconify-json/ep": "^1.2.3",
  54. "@iconify-json/mdi": "^1.2.3",
  55. "@iconify-json/ri": "^1.2.7",
  56. "@iconify/vue": "^5.0.0",
  57. "@playwright/test": "^1.57.0",
  58. "@types/lodash-es": "^4.17.12",
  59. "@types/node": "^18.16.8",
  60. "@types/nprogress": "^0.2.3",
  61. "@typescript-eslint/eslint-plugin": "^8.20.0",
  62. "@typescript-eslint/parser": "^8.20.0",
  63. "@vitejs/plugin-vue": "5.0.5",
  64. "@vitest/coverage-v8": "^4.0.16",
  65. "@vitest/ui": "^4.0.16",
  66. "@vue/test-utils": "^2.0.0-rc.4",
  67. "@vue/tsconfig": "^0.4.0",
  68. "eslint": "^8.57.1",
  69. "eslint-config-airbnb-base": "^14.2.1",
  70. "eslint-config-prettier": "^8.1.0",
  71. "eslint-plugin-import": "^2.22.1",
  72. "eslint-plugin-prettier": "^3.3.1",
  73. "eslint-plugin-vue": "^9.11.0",
  74. "happy-dom": "^20.0.11",
  75. "husky": "^6.0.0",
  76. "i18next-scanner": "^4.6.0",
  77. "i18next-scanner-typescript": "^1.2.1",
  78. "lint-staged": "^10.5.4",
  79. "prettier": "^2.8.8",
  80. "typescript": "~5.6.3",
  81. "unplugin-auto-import": "^0.19.0",
  82. "unplugin-icons": "^22.5.0",
  83. "unplugin-vue-components": "^0.28.0",
  84. "vite": "5.3.1",
  85. "vite-plugin-vue-devtools": "^7.7.0",
  86. "vitest": "^4.0.16",
  87. "vue-tsc": "2.1.10"
  88. }
  89. }