package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. {
  2. "name": "tg-live-game-web",
  3. "private": true,
  4. "version": "1.0.33",
  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. "@codemirror/lang-json": "^6.0.2",
  37. "@codemirror/theme-one-dark": "^6.1.3",
  38. "@codemirror/view": "^6.39.11",
  39. "@element-plus/icons-vue": "^2.1.0",
  40. "@vueuse/core": "^14.1.0",
  41. "axios": "^1.4.0",
  42. "codemirror": "^6.0.2",
  43. "cz-customizable": "^7.5.1",
  44. "date-fns": "^4.1.0",
  45. "date-fns-tz": "^3.2.0",
  46. "dayjs": "^1.11.19",
  47. "element-plus": "2.7.5",
  48. "element-plus-table-dragable": "^1.0.0",
  49. "hls.js": "^1.4.10",
  50. "lodash-es": "^4.17.22",
  51. "nprogress": "^0.2.0",
  52. "pinia": "^2.0.36",
  53. "sass": "^1.62.1",
  54. "vue": "^3.5.13",
  55. "vue-codemirror": "^6.1.1",
  56. "vue-i18n": "^11.2.8",
  57. "vue-router": "^4.2.0"
  58. },
  59. "devDependencies": {
  60. "@commitlint/cli": "^12.1.1",
  61. "@commitlint/config-conventional": "^12.1.1",
  62. "@iconify-json/ep": "^1.2.3",
  63. "@iconify-json/mdi": "^1.2.3",
  64. "@iconify-json/ri": "^1.2.7",
  65. "@iconify/vue": "^5.0.0",
  66. "@playwright/test": "^1.57.0",
  67. "@types/lodash-es": "^4.17.12",
  68. "@types/node": "^18.16.8",
  69. "@types/nprogress": "^0.2.3",
  70. "@typescript-eslint/eslint-plugin": "^8.20.0",
  71. "@typescript-eslint/parser": "^8.20.0",
  72. "@vitejs/plugin-vue": "5.0.5",
  73. "@vitest/coverage-v8": "^4.0.16",
  74. "@vitest/ui": "^4.0.16",
  75. "@vue/test-utils": "^2.0.0-rc.4",
  76. "@vue/tsconfig": "^0.4.0",
  77. "@vue/eslint-config-prettier": "^7.1.0",
  78. "@vue/eslint-config-typescript": "^11.0.3",
  79. "eslint": "^8.57.1",
  80. "eslint-config-airbnb-base": "^14.2.1",
  81. "eslint-config-prettier": "^8.1.0",
  82. "eslint-plugin-import": "^2.22.1",
  83. "eslint-plugin-jest": "^28.11.0",
  84. "eslint-plugin-prettier": "^3.3.1",
  85. "eslint-plugin-unused-imports": "^4.1.4",
  86. "eslint-plugin-vue": "^9.11.0",
  87. "happy-dom": "^20.0.11",
  88. "husky": "^6.0.0",
  89. "i18next-scanner": "^4.6.0",
  90. "i18next-scanner-typescript": "^1.2.1",
  91. "lint-staged": "^10.5.4",
  92. "prettier": "^2.8.8",
  93. "typescript": "~5.6.3",
  94. "unplugin-auto-import": "^0.19.0",
  95. "unplugin-icons": "^22.5.0",
  96. "unplugin-vue-components": "^0.28.0",
  97. "vite": "5.3.1",
  98. "vite-plugin-vue-devtools": "^7.7.0",
  99. "vitest": "^4.0.16",
  100. "vue-tsc": "2.1.10"
  101. },
  102. "config": {
  103. "commitizen": {
  104. "path": "./node_modules/cz-customizable"
  105. }
  106. }
  107. }