package.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. "vue-signature-pad": "^3.0.2"
  43. },
  44. "devDependencies": {
  45. "@typescript-eslint/eslint-plugin": "^5.47.0",
  46. "@typescript-eslint/parser": "^5.47.0",
  47. "@vitejs/plugin-legacy": "^3.0.1",
  48. "@vitejs/plugin-vue": "^4.0.0",
  49. "@vitejs/plugin-vue-jsx": "^3.0.0",
  50. "amfe-flexible": "^2.2.1",
  51. "autoprefixer": "^10.4.17",
  52. "cnjm-postcss-px-to-viewport": "^1.0.0",
  53. "consola": "^2.15.3",
  54. "cross-env": "^7.0.3",
  55. "eruda": "^2.9.1",
  56. "eslint": "^8.30.0",
  57. "eslint-config-prettier": "^8.5.0",
  58. "eslint-plugin-prettier": "^4.2.1",
  59. "eslint-plugin-vue": "^9.8.0",
  60. "git-cz": "^4.9.0",
  61. "husky": "8.0.2",
  62. "lint-staged": "13.1.0",
  63. "mockjs": "^1.1.0",
  64. "postcss": "^8.4.33",
  65. "postcss-html": "1.5.0",
  66. "postcss-less": "^6.0.0",
  67. "prettier": "^2.8.1",
  68. "rollup-plugin-visualizer": "^5.8.3",
  69. "stylelint": "^14.16.0",
  70. "stylelint-config-prettier": "^9.0.4",
  71. "stylelint-config-recommended": "^9.0.0",
  72. "stylelint-config-recommended-vue": "^1.4.0",
  73. "stylelint-config-standard": "^29.0.0",
  74. "stylelint-order": "^5.0.0",
  75. "tailwindcss": "^3.4.1",
  76. "terser": "^5.16.1",
  77. "typescript": "^4.9.4",
  78. "unplugin-auto-import": "^0.12.1",
  79. "unplugin-vue-components": "^0.26.0",
  80. "vite": "^4.0.2",
  81. "vite-plugin-compression": "^0.5.1",
  82. "vite-plugin-eruda": "^1.0.1",
  83. "vite-plugin-imagemin": "^0.6.1",
  84. "vite-plugin-mock": "^2.9.6",
  85. "vite-plugin-pages": "^0.28.0",
  86. "vite-plugin-progress": "^0.0.6",
  87. "vite-plugin-restart": "^0.3.0",
  88. "vite-plugin-style-import": "^2.0.0",
  89. "vite-plugin-svg-icons": "^2.0.1",
  90. "vite-plugin-vue-setup-extend": "^0.4.0",
  91. "vite-plugin-windicss": "^1.9.3",
  92. "vue-eslint-parser": "^9.1.0",
  93. "vue-tsc": "^1.0.16",
  94. "windicss": "^3.5.6"
  95. },
  96. "husky": {
  97. "hooks": {
  98. "pre-commit": "lint-staged"
  99. }
  100. },
  101. "resolutions": {
  102. "bin-wrapper": "npm:bin-wrapper-china",
  103. "gifsicle": "5.2.0"
  104. },
  105. "lint-staged": {
  106. "*.{js,jsx,ts,tsx}": [
  107. "eslint --fix",
  108. "prettier --write"
  109. ],
  110. "{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": [
  111. "prettier --write--parser json"
  112. ],
  113. "package.json": [
  114. "prettier --write"
  115. ],
  116. "*.vue": [
  117. "eslint --fix",
  118. "prettier --write",
  119. "stylelint --fix"
  120. ],
  121. "*.{scss,less,styl,html}": [
  122. "stylelint --fix",
  123. "prettier --write"
  124. ],
  125. "*.md": [
  126. "prettier --write"
  127. ]
  128. }
  129. }