package.json 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. "axios": "^1.10.0",
  28. "element-plus": "^2.10.3",
  29. "js-cookie": "^3.0.5",
  30. "nprogress": "^0.2.0",
  31. "pinia": "^3.0.3",
  32. "pinia-plugin-persistedstate": "^4.4.1",
  33. "vue": "^3.5.17",
  34. "vue-router": "^4.5.1"
  35. },
  36. "devDependencies": {
  37. "@commitlint/cli": "^19.8.1",
  38. "@commitlint/config-conventional": "^19.8.1",
  39. "@vitejs/plugin-vue": "^6.0.0",
  40. "@vitejs/plugin-vue-jsx": "^5.0.1",
  41. "@vue/eslint-config-prettier": "^10.2.0",
  42. "@vue/eslint-config-typescript": "^14.6.0",
  43. "@vue/tsconfig": "^0.7.0",
  44. "commitizen": "^4.3.1",
  45. "cz-git": "^1.11.2",
  46. "eslint": "^9.30.1",
  47. "husky": "^9.1.7",
  48. "lint-staged": "^16.1.2",
  49. "postcss": "^8.5.6",
  50. "postcss-html": "^1.8.0",
  51. "postcss-scss": "^4.0.9",
  52. "prettier": "^3.6.2",
  53. "sass": "^1.89.2",
  54. "stylelint-config-html": "^1.1.0",
  55. "stylelint-config-recommended-scss": "^15.0.1",
  56. "stylelint-config-recommended-vue": "^1.6.1",
  57. "stylelint-config-standard": "^38.0.0",
  58. "stylelint-config-standard-scss": "^15.0.1",
  59. "typescript": "~5.8.3",
  60. "vite": "^7.0.3",
  61. "vue-tsc": "^2.2.12"
  62. },
  63. "engines": {
  64. "node": ">=20.0.0"
  65. },
  66. "config": {
  67. "commitizen": {
  68. "path": "node_modules/cz-git"
  69. }
  70. },
  71. "lint-staged": {
  72. "*.{js,ts}": [
  73. "eslint --fix",
  74. "prettier --write"
  75. ],
  76. "*.{cjs,json}": [
  77. "prettier --write"
  78. ],
  79. "*.{vue,html}": [
  80. "eslint --fix",
  81. "prettier --write",
  82. "stylelint --fix --allow-empty-input"
  83. ],
  84. "*.{scss,css}": [
  85. "stylelint --fix --allow-empty-input",
  86. "prettier --write"
  87. ]
  88. }
  89. }