package.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {
  2. "name": "tg-live-game-web",
  3. "private": true,
  4. "version": "1.0.0",
  5. "type": "module",
  6. "scripts": {
  7. "dev": "vite",
  8. "build": "vue-tsc -b && 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. },
  25. "lint-staged": {
  26. "*.{vue,js,ts}": [
  27. "prettier --write"
  28. ]
  29. },
  30. "dependencies": {
  31. "@element-plus/icons-vue": "^2.1.0",
  32. "axios": "^1.4.0",
  33. "element-plus": "2.7.5",
  34. "hls.js": "^1.4.10",
  35. "pinia": "^2.0.36",
  36. "sass": "^1.62.1",
  37. "vue": "^3.5.13",
  38. "vue-router": "^4.2.0"
  39. },
  40. "devDependencies": {
  41. "@commitlint/cli": "^12.1.1",
  42. "@commitlint/config-conventional": "^12.1.1",
  43. "@playwright/test": "^1.57.0",
  44. "@types/node": "^18.16.8",
  45. "@typescript-eslint/eslint-plugin": "^8.20.0",
  46. "@typescript-eslint/parser": "^8.20.0",
  47. "@vitejs/plugin-vue": "5.0.5",
  48. "@vitest/coverage-v8": "^4.0.16",
  49. "@vitest/ui": "^4.0.16",
  50. "@vue/test-utils": "^2.0.0-rc.4",
  51. "@vue/tsconfig": "^0.4.0",
  52. "eslint": "^8.57.1",
  53. "eslint-config-airbnb-base": "^14.2.1",
  54. "eslint-config-prettier": "^8.1.0",
  55. "eslint-plugin-import": "^2.22.1",
  56. "eslint-plugin-prettier": "^3.3.1",
  57. "eslint-plugin-vue": "^9.11.0",
  58. "happy-dom": "^20.0.11",
  59. "husky": "^6.0.0",
  60. "lint-staged": "^10.5.4",
  61. "prettier": "^2.8.8",
  62. "typescript": "~5.0.4",
  63. "unplugin-auto-import": "^0.19.0",
  64. "unplugin-vue-components": "^0.28.0",
  65. "vite": "5.3.1",
  66. "vite-plugin-vue-devtools": "^7.7.0",
  67. "vitest": "^4.0.16",
  68. "vue-tsc": "2.0.21"
  69. }
  70. }