package.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. {
  2. "name": "vue-h5-template",
  3. "version": "1.0.0",
  4. "scripts": {
  5. "dev": "vite",
  6. "dev:test": "vite --mode test",
  7. "dev:prod": "vite --mode production",
  8. "build": "vite build",
  9. "report": "cross-env REPORT=true npm run build",
  10. "preview": "vite preview",
  11. "lint:eslint": "eslint --cache --max-warnings 0 \"{src,mock}/**/*.{vue,ts,tsx}\" --fix",
  12. "lint:prettier": "prettier --write \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"",
  13. "lint:stylelint": "stylelint --cache --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
  14. "lint:lint-staged": "lint-staged",
  15. "prepare": "husky install",
  16. "deps": "yarn upgrade-interactive --latest",
  17. "commit": "git add . && git-cz"
  18. },
  19. "dependencies": {
  20. "@ant-design/icons-vue": "^7.0.1",
  21. "@nutui/nutui": "^3.3.1",
  22. "@vant/touch-emulator": "^1.4.0",
  23. "@varlet/ui": "^2.4.2",
  24. "@vueup/vue-quill": "^1.2.0",
  25. "@vueuse/core": "9.8.2",
  26. "@vueuse/integrations": "9.8.2",
  27. "@wangeditor/editor": "^5.1.23",
  28. "@wangeditor/editor-for-vue": "^5.1.12",
  29. "ant-design-vue": "4.x",
  30. "axios": "1.2.1",
  31. "dayjs": "^1.11.7",
  32. "jsonp": "^0.2.1",
  33. "mitt": "^3.0.0",
  34. "mobile-detect": "^1.4.5",
  35. "pinia": "^2.0.28",
  36. "pinia-plugin-persistedstate": "^3.0.1",
  37. "universal-cookie": "^4.0.4",
  38. "vant": "^4.0.11",
  39. "vue": "^3.2.45",
  40. "vue-i18n": "^9.2.2",
  41. "vue-router": "^4.1.6"
  42. },
  43. "devDependencies": {
  44. "@typescript-eslint/eslint-plugin": "^5.47.0",
  45. "@typescript-eslint/parser": "^5.47.0",
  46. "@vitejs/plugin-legacy": "^3.0.1",
  47. "@vitejs/plugin-vue": "^4.0.0",
  48. "@vitejs/plugin-vue-jsx": "^3.0.0",
  49. "amfe-flexible": "^2.2.1",
  50. "autoprefixer": "^10.4.17",
  51. "cnjm-postcss-px-to-viewport": "^1.0.0",
  52. "consola": "^2.15.3",
  53. "cross-env": "^7.0.3",
  54. "eruda": "^2.9.1",
  55. "eslint": "^8.30.0",
  56. "eslint-config-prettier": "^8.5.0",
  57. "eslint-plugin-prettier": "^4.2.1",
  58. "eslint-plugin-vue": "^9.8.0",
  59. "git-cz": "^4.9.0",
  60. "husky": "8.0.2",
  61. "lint-staged": "13.1.0",
  62. "mockjs": "^1.1.0",
  63. "postcss": "^8.4.33",
  64. "postcss-html": "1.5.0",
  65. "postcss-less": "^6.0.0",
  66. "prettier": "^2.8.1",
  67. "rollup-plugin-visualizer": "^5.8.3",
  68. "stylelint": "^14.16.0",
  69. "stylelint-config-prettier": "^9.0.4",
  70. "stylelint-config-recommended": "^9.0.0",
  71. "stylelint-config-recommended-vue": "^1.4.0",
  72. "stylelint-config-standard": "^29.0.0",
  73. "stylelint-order": "^5.0.0",
  74. "tailwindcss": "^3.4.1",
  75. "terser": "^5.16.1",
  76. "typescript": "^4.9.4",
  77. "unplugin-auto-import": "^0.12.1",
  78. "unplugin-vue-components": "^0.26.0",
  79. "vite": "^4.0.2",
  80. "vite-plugin-compression": "^0.5.1",
  81. "vite-plugin-eruda": "^1.0.1",
  82. "vite-plugin-imagemin": "^0.6.1",
  83. "vite-plugin-mock": "^2.9.6",
  84. "vite-plugin-pages": "^0.28.0",
  85. "vite-plugin-progress": "^0.0.6",
  86. "vite-plugin-restart": "^0.3.0",
  87. "vite-plugin-style-import": "^2.0.0",
  88. "vite-plugin-svg-icons": "^2.0.1",
  89. "vite-plugin-vue-setup-extend": "^0.4.0",
  90. "vite-plugin-windicss": "^1.9.3",
  91. "vue-eslint-parser": "^9.1.0",
  92. "vue-tsc": "^1.0.16",
  93. "windicss": "^3.5.6"
  94. },
  95. "husky": {
  96. "hooks": {
  97. "pre-commit": "lint-staged"
  98. }
  99. },
  100. "resolutions": {
  101. "bin-wrapper": "npm:bin-wrapper-china",
  102. "gifsicle": "5.2.0"
  103. },
  104. "lint-staged": {
  105. "*.{js,jsx,ts,tsx}": [
  106. "eslint --fix",
  107. "prettier --write"
  108. ],
  109. "{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": [
  110. "prettier --write--parser json"
  111. ],
  112. "package.json": [
  113. "prettier --write"
  114. ],
  115. "*.vue": [
  116. "eslint --fix",
  117. "prettier --write",
  118. "stylelint --fix"
  119. ],
  120. "*.{scss,less,styl,html}": [
  121. "stylelint --fix",
  122. "prettier --write"
  123. ],
  124. "*.md": [
  125. "prettier --write"
  126. ]
  127. }
  128. }