You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.7 KiB

5 months ago
5 months ago
5 months ago
5 months ago
  1. {
  2. "name": "template-web",
  3. "version": "1.0.0",
  4. "description": "",
  5. "main": "index.js",
  6. "scripts": {
  7. "dev": "vite --mode dev",
  8. "dev:test": "vite --mode test",
  9. "dev:prod": "vite --mode prod",
  10. "build": "vite build --mode dev",
  11. "build:test": "vite build --mode test",
  12. "build:prod": "vite build --mode prod",
  13. "build:dev": "vite build --mode dev",
  14. "prepare": "husky",
  15. "lint:lint-staged": "lint-staged"
  16. },
  17. "keywords": [],
  18. "author": "",
  19. "license": "ISC",
  20. "dependencies": {
  21. "axios": "^1.8.1",
  22. "element-plus": "^2.9.5",
  23. "lodash": "^4.17.21",
  24. "pinia": "^3.0.1",
  25. "vue": "^3.5.13",
  26. "vue-router": "^4.5.0"
  27. },
  28. "devDependencies": {
  29. "@commitlint/cli": "^19.7.1",
  30. "@commitlint/config-conventional": "^19.7.1",
  31. "@types/node": "^22.13.5",
  32. "@typescript-eslint/eslint-plugin": "^8.25.0",
  33. "@typescript-eslint/parser": "^8.25.0",
  34. "@vitejs/plugin-vue": "^5.2.1",
  35. "husky": "^9.1.7",
  36. "lint-staged": "^15.4.3",
  37. "prettier": "^3.5.2",
  38. "sass": "^1.85.1",
  39. "typescript": "^5.7.3",
  40. "unplugin-auto-import": "^19.1.1",
  41. "unplugin-vue-components": "^28.4.1",
  42. "vite": "^6.2.0",
  43. "vite-plugin-compression": "^0.5.1",
  44. "vue-tsc": "^2.2.4"
  45. },
  46. "husky": {
  47. "hooks": {
  48. "pre-commit": "lint-staged"
  49. }
  50. },
  51. "lint-staged": {
  52. "src/**/*.{js,jsx,vue}": [
  53. "eslint --fix",
  54. "prettier --write",
  55. "lint-staged",
  56. "git add"
  57. ],
  58. "*.{cjs,json}": [
  59. "prettier --write"
  60. ],
  61. "*.{vue,html}": [
  62. "eslint --fix",
  63. "prettier --write",
  64. "stylelint --fix"
  65. ],
  66. "*.{scss,css}": [
  67. "stylelint --fix",
  68. "prettier --write"
  69. ],
  70. "*.md": [
  71. "prettier --write"
  72. ]
  73. }
  74. }