package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {
  2. "name": "lucky-cloud-web-tdesign",
  3. "version": "0.5.1",
  4. "scripts": {
  5. "dev:mock": "vite --open --mode mock",
  6. "dev": "vite --open --mode development",
  7. "dev:linux": "vite --mode development",
  8. "build:test": "vite build --mode test",
  9. "build": "vite build --mode release",
  10. "build:site": "vite build --mode site",
  11. "site:preview": "npm run build && cp -r dist _site",
  12. "preview": "vite preview",
  13. "lint": "eslint --ext .vue,.js,.jsx,.ts,.tsx ./ --max-warnings 0",
  14. "lint:fix": "eslint --ext .vue,.js,jsx,.ts,.tsx ./ --max-warnings 0 --fix",
  15. "stylelint": "stylelint src/**/*.{html,vue,sass,less}",
  16. "stylelint:fix": "stylelint --cache --fix src/**/*.{html,vue,vss,sass,less}",
  17. "prepare": "node -e \"if(require('fs').existsSync('.git')){process.exit(1)}\" || is-ci || husky install",
  18. "test": "echo \"no test specified,work in process\"",
  19. "test:coverage": "echo \"no test:coverage specified,work in process\""
  20. },
  21. "dependencies": {
  22. "axios": "^1.1.3",
  23. "dayjs": "^1.10.8",
  24. "echarts": "~5.1.2",
  25. "nprogress": "^0.2.0",
  26. "qrcode.vue": "^1.7.0",
  27. "tdesign-icons-vue": "^0.1.6",
  28. "tdesign-vue": "^1.0.1",
  29. "tvision-color": "~1.5.0",
  30. "typescript": "^4.2.4",
  31. "vue": "~2.6.14",
  32. "vue-clipboard2": "^0.3.1",
  33. "vue-router": "^3.5.1",
  34. "vuex": "^3.6.2",
  35. "vuex-router-sync": "^5.0.0"
  36. },
  37. "devDependencies": {
  38. "@commitlint/cli": "^17.0.3",
  39. "@commitlint/config-conventional": "^17.1.0",
  40. "@types/vue-color": "^2.4.3",
  41. "@typescript-eslint/eslint-plugin": "^4.19.0",
  42. "@typescript-eslint/parser": "^4.19.0",
  43. "commitizen": "^4.2.3",
  44. "eslint": "^7.22.0",
  45. "eslint-config-airbnb-base": "^14.2.1",
  46. "eslint-config-prettier": "^8.5.0",
  47. "eslint-import-resolver-alias": "^1.1.2",
  48. "eslint-plugin-import": "^2.22.1",
  49. "eslint-plugin-vue": "^7.8.0",
  50. "husky": "^8.0.1",
  51. "less": "^4.1.0",
  52. "lint-staged": "^13.0.3",
  53. "mockjs": "^1.1.0",
  54. "prettier": "^2.6.0",
  55. "stylelint": "~13.13.1",
  56. "stylelint-config-prettier": "~9.0.3",
  57. "stylelint-less": "1.0.5",
  58. "stylelint-order": "~4.1.0",
  59. "vite": "^2.7.10",
  60. "vite-plugin-mock": "^2.3.0",
  61. "vite-plugin-theme": "^0.8.1",
  62. "vite-plugin-vue2": "^2.0.1",
  63. "vite-plugin-vue2-svg": "~0.3.0",
  64. "vue-template-compiler": "~2.6.14"
  65. },
  66. "config": {
  67. "commitizen": {
  68. "path": "./node_modules/cz-conventional-changelog"
  69. }
  70. },
  71. "husky": {
  72. "hooks": {
  73. "pre-commit": "lint-staged",
  74. "prepare-commit-msg": "exec < /dev/tty && git cz --hook || true",
  75. "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
  76. }
  77. },
  78. "lint-staged": {
  79. "*.{js,jsx,vue,ts,tsx}": [
  80. "prettier --write",
  81. "npm run lint:fix",
  82. "git add ."
  83. ],
  84. "*.{html,vue,vss,sass,less}": [
  85. "npm run stylelint:fix",
  86. "git add ."
  87. ]
  88. },
  89. "description": "tdesign-starter-admin"
  90. }