package.json 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {
  2. "name": "init-project",
  3. "version": "0.6.2",
  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. "lodash": "^4.17.21",
  26. "nprogress": "^0.2.0",
  27. "qrcode.vue": "^1.7.0",
  28. "tdesign-icons-vue": "^0.1.6",
  29. "tdesign-vue": "^1.3.0",
  30. "tvision-color": "~1.6.0",
  31. "typescript": "^5.1.6",
  32. "vue": "~2.6.14",
  33. "vue-clipboard2": "^0.3.1",
  34. "vue-router": "^3.5.1",
  35. "vuex": "^3.6.2",
  36. "vuex-router-sync": "^5.0.0"
  37. },
  38. "devDependencies": {
  39. "@commitlint/cli": "^17.0.3",
  40. "@commitlint/config-conventional": "^17.1.0",
  41. "@types/vue-color": "^2.4.3",
  42. "@typescript-eslint/eslint-plugin": "^4.19.0",
  43. "@typescript-eslint/parser": "^4.19.0",
  44. "commitizen": "^4.2.3",
  45. "eslint": "^7.22.0",
  46. "eslint-config-airbnb-base": "^14.2.1",
  47. "eslint-config-prettier": "^8.5.0",
  48. "eslint-import-resolver-alias": "^1.1.2",
  49. "eslint-plugin-import": "^2.22.1",
  50. "eslint-plugin-vue": "^7.8.0",
  51. "husky": "^8.0.1",
  52. "less": "^4.1.0",
  53. "lint-staged": "^13.0.3",
  54. "mockjs": "^1.1.0",
  55. "prettier": "^2.6.0",
  56. "stylelint": "~13.13.1",
  57. "stylelint-config-prettier": "~9.0.3",
  58. "stylelint-less": "1.0.5",
  59. "stylelint-order": "~4.1.0",
  60. "vite": "^4.1.4",
  61. "vite-plugin-mock": "^3.0.0",
  62. "vite-plugin-theme": "^0.8.1",
  63. "vite-plugin-vue2": "^2.0.1",
  64. "vite-plugin-vue2-svg": "~0.4.0",
  65. "vue-template-compiler": "~2.6.14"
  66. },
  67. "config": {
  68. "commitizen": {
  69. "path": "./node_modules/cz-conventional-changelog"
  70. }
  71. },
  72. "husky": {
  73. "hooks": {
  74. "pre-commit": "lint-staged",
  75. "prepare-commit-msg": "exec < /dev/tty && git cz --hook || true",
  76. "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
  77. }
  78. },
  79. "lint-staged": {
  80. "*.{js,jsx,vue,ts,tsx}": [
  81. "prettier --write",
  82. "npm run lint:fix"
  83. ],
  84. "*.{html,vue,vss,sass,less}": [
  85. "npm run stylelint:fix"
  86. ]
  87. },
  88. "description": "Base on tdesign-starter-cli"
  89. }