package.json 3.0 KB

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