package.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. {
  2. "name": "eco-boot-web",
  3. "private": true,
  4. "version": "1.0.0",
  5. "type": "module",
  6. "author": {
  7. "name": "wanggaokun",
  8. "email": "wanggaokun@wo.com",
  9. "url": "https://gitee.com/gaokunw/eco-boot-web"
  10. },
  11. "scripts": {
  12. "i": "pnpm install",
  13. "dev": "vite --mode development",
  14. "build": "vue-tsc -b && vite build --mode production",
  15. "preview": "vite preview",
  16. "prepare": "husky install",
  17. "lint:lint-staged": "lint-staged -c ./.husky/lint-staged-c.cjs",
  18. "lint:eslint": "eslint . --fix \"src/**/*.{js,ts,tsx,vue,html}\"",
  19. "lint:prettier": "prettier --write \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"",
  20. "lint:stylelint": "stylelint --cache --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
  21. "commit": "git add -A && git-cz && git push",
  22. "release": "standard-version",
  23. "commitlint": "commitlint --config commitlint.config.cjs -e -V"
  24. },
  25. "dependencies": {
  26. "@element-plus/icons-vue": "^2.3.1",
  27. "@vueuse/core": "^13.5.0",
  28. "axios": "^1.10.0",
  29. "element-plus": "^2.10.3",
  30. "js-cookie": "^3.0.5",
  31. "nprogress": "^0.2.0",
  32. "pinia": "^3.0.3",
  33. "pinia-plugin-persistedstate": "^4.4.1",
  34. "vue": "^3.5.17",
  35. "vue-eslint-parser": "^10.2.0",
  36. "vue-router": "^4.5.1"
  37. },
  38. "devDependencies": {
  39. "@commitlint/cli": "^19.8.1",
  40. "@commitlint/config-conventional": "^19.8.1",
  41. "@eslint/js": "^9.30.1",
  42. "@types/node": "^24.0.12",
  43. "@vitejs/plugin-vue": "^6.0.0",
  44. "@vitejs/plugin-vue-jsx": "^5.0.1",
  45. "@vue/eslint-config-prettier": "^10.2.0",
  46. "@vue/eslint-config-typescript": "^14.6.0",
  47. "@vue/tsconfig": "^0.7.0",
  48. "commitizen": "^4.3.1",
  49. "cz-git": "^1.11.2",
  50. "eslint": "^9.30.1",
  51. "eslint-plugin-prettier": "^5.5.1",
  52. "eslint-plugin-vue": "^10.3.0",
  53. "husky": "^9.1.7",
  54. "lint-staged": "^16.1.2",
  55. "postcss": "^8.5.6",
  56. "postcss-html": "^1.8.0",
  57. "postcss-scss": "^4.0.9",
  58. "prettier": "^3.6.2",
  59. "sass": "^1.89.2",
  60. "stylelint-config-html": "^1.1.0",
  61. "stylelint-config-recommended-scss": "^15.0.1",
  62. "stylelint-config-recommended-vue": "^1.6.1",
  63. "stylelint-config-standard": "^38.0.0",
  64. "stylelint-config-standard-scss": "^15.0.1",
  65. "typescript": "~5.8.3",
  66. "typescript-eslint": "^8.36.0",
  67. "unplugin-auto-import": "^19.3.0",
  68. "unplugin-icons": "^22.1.0",
  69. "unplugin-vue-components": "^28.8.0",
  70. "vite": "^7.0.3",
  71. "vite-plugin-ejs": "^1.7.0",
  72. "vite-plugin-svg-icons": "^2.0.1",
  73. "vite-plugin-vue-setup-extend": "^0.4.0",
  74. "vue-tsc": "^2.2.12"
  75. },
  76. "engines": {
  77. "node": ">=20.0.0"
  78. },
  79. "config": {
  80. "commitizen": {
  81. "path": "node_modules/cz-git"
  82. }
  83. },
  84. "lint-staged": {
  85. "*.{js,ts}": [
  86. "eslint --fix",
  87. "prettier --write"
  88. ],
  89. "*.{cjs,json}": [
  90. "prettier --write"
  91. ],
  92. "*.{vue,html}": [
  93. "eslint --fix",
  94. "prettier --write",
  95. "stylelint --fix --allow-empty-input"
  96. ],
  97. "*.{scss,css}": [
  98. "stylelint --fix --allow-empty-input",
  99. "prettier --write"
  100. ]
  101. }
  102. }