package.json 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. {
  2. "name": "zfb-mp",
  3. "version": "4.0.0",
  4. "scripts": {
  5. "bootstrap": "pnpm install",
  6. "serve": "npm run dev",
  7. "dev": "vite",
  8. "build": "cross-env NODE_ENV=production vite build && esno ./build/script/postBuild.ts",
  9. "build:dev": "cross-env NODE_ENV=development vite build && esno ./build/script/postBuild.ts",
  10. "build:test": "cross-env vite build --mode test && esno ./build/script/postBuild.ts",
  11. "build:no-cache": "pnpm clean:cache && npm run build",
  12. "report": "cross-env REPORT=true npm run build",
  13. "type:check": "vue-tsc --noEmit --skipLibCheck",
  14. "preview": "npm run build && vite preview",
  15. "preview:dist": "vite preview",
  16. "log": "conventional-changelog -p angular -i CHANGELOG.md -s",
  17. "clean:cache": "rimraf node_modules/.cache/ && rimraf node_modules/.vite",
  18. "clean:lib": "rimraf node_modules",
  19. "lint:eslint": "eslint --cache --max-warnings 0 \"{src,mock}/**/*.{vue,ts,tsx}\" --fix",
  20. "lint:prettier": "prettier --write \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"",
  21. "lint:stylelint": "stylelint --cache --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
  22. "lint:lint-staged": "lint-staged",
  23. "test:unit": "jest",
  24. "test:unit-coverage": "jest --coverage",
  25. "test:gzip": "npx http-server dist --cors --gzip -c-1",
  26. "test:br": "npx http-server dist --cors --brotli -c-1",
  27. "reinstall": "rimraf pnpm-lock.yaml && rimraf package.lock.json && rimraf node_modules && npm run bootstrap",
  28. "prepare": "node -e \"if(require('fs').existsSync('.git')){process.exit(1)}\" || husky install",
  29. "gen:icon": "esno ./build/generate/icon/index.ts",
  30. "commit": "git cz"
  31. },
  32. "dependencies": {
  33. "@ant-design/colors": "^6.0.0",
  34. "@ant-design/icons-vue": "^6.1.0",
  35. "@iconify/iconify": "^2.2.1",
  36. "@logicflow/core": "^0.7.16",
  37. "@logicflow/extension": "^0.7.16",
  38. "@pansy/china-division": "^2.0.0",
  39. "@vue/runtime-core": "^3.2.39",
  40. "@vue/shared": "^3.2.39",
  41. "@vueuse/core": "^7.7.1",
  42. "@vueuse/shared": "^7.7.1",
  43. "@zxcvbn-ts/core": "^1.2.0",
  44. "ant-design-vue": "^3.2.12",
  45. "axios": "^0.24.0",
  46. "codemirror": "^5.65.8",
  47. "cropperjs": "^1.5.12",
  48. "crypto-js": "^4.1.1",
  49. "dayjs": "^1.11.5",
  50. "echarts": "^5.3.3",
  51. "intro.js": "^4.3.0",
  52. "js-base64": "^3.7.2",
  53. "lodash-es": "^4.17.21",
  54. "mockjs": "^1.1.0",
  55. "moment": "^2.29.4",
  56. "nprogress": "^0.2.0",
  57. "path-to-regexp": "^6.2.1",
  58. "pinia": "2.0.9",
  59. "print-js": "^1.6.0",
  60. "qrcode": "^1.5.1",
  61. "qs": "^6.11.0",
  62. "resize-observer-polyfill": "^1.5.1",
  63. "showdown": "^1.9.1",
  64. "sortablejs": "^1.15.0",
  65. "tinymce": "^5.10.5",
  66. "vditor": "^3.8.17",
  67. "vue": "^3.2.39",
  68. "vue-i18n": "^9.2.2",
  69. "vue-json-pretty": "^1.9.2",
  70. "vue-router": "^4.1.5",
  71. "vue-types": "^4.2.1",
  72. "xlsx": "^0.17.5"
  73. },
  74. "devDependencies": {
  75. "@commitlint/cli": "^16.3.0",
  76. "@commitlint/config-conventional": "^16.2.4",
  77. "@iconify/json": "^2.1.109",
  78. "@purge-icons/generated": "^0.7.0",
  79. "@types/codemirror": "^5.60.5",
  80. "@types/crypto-js": "^4.1.1",
  81. "@types/fs-extra": "^9.0.13",
  82. "@types/inquirer": "^8.2.3",
  83. "@types/intro.js": "^3.0.2",
  84. "@types/jest": "^27.5.2",
  85. "@types/lodash-es": "^4.17.6",
  86. "@types/mockjs": "^1.0.6",
  87. "@types/node": "^17.0.45",
  88. "@types/nprogress": "^0.2.0",
  89. "@types/qrcode": "^1.5.0",
  90. "@types/qs": "^6.9.7",
  91. "@types/showdown": "^1.9.4",
  92. "@types/sortablejs": "^1.15.0",
  93. "@typescript-eslint/eslint-plugin": "^5.37.0",
  94. "@typescript-eslint/parser": "^5.37.0",
  95. "@vitejs/plugin-legacy": "^1.8.2",
  96. "@vitejs/plugin-vue": "^2.3.4",
  97. "@vitejs/plugin-vue-jsx": "^1.3.10",
  98. "@vue/compiler-sfc": "3.2.26",
  99. "@vue/test-utils": "^2.0.2",
  100. "autoprefixer": "^10.4.11",
  101. "commitizen": "^4.2.5",
  102. "conventional-changelog-cli": "^2.2.2",
  103. "cross-env": "^7.0.3",
  104. "cz-customizable": "^7.0.0",
  105. "dotenv": "^10.0.0",
  106. "eslint": "^8.23.1",
  107. "eslint-config-prettier": "^8.5.0",
  108. "eslint-define-config": "^1.7.0",
  109. "eslint-plugin-jest": "^25.7.0",
  110. "eslint-plugin-prettier": "^4.2.1",
  111. "eslint-plugin-vue": "^8.7.1",
  112. "esno": "^0.13.0",
  113. "fs-extra": "^10.1.0",
  114. "husky": "^7.0.4",
  115. "inquirer": "^8.2.4",
  116. "jest": "^27.5.1",
  117. "less": "^4.1.3",
  118. "lint-staged": "12.1.4",
  119. "npm-run-all": "^4.1.5",
  120. "postcss": "^8.4.16",
  121. "postcss-html": "^1.5.0",
  122. "postcss-less": "^5.0.0",
  123. "prettier": "^2.7.1",
  124. "rimraf": "^3.0.2",
  125. "rollup-plugin-visualizer": "^5.8.1",
  126. "stylelint": "^14.12.0",
  127. "stylelint-config-html": "^1.1.0",
  128. "stylelint-config-prettier": "^9.0.3",
  129. "stylelint-config-recommended": "^6.0.0",
  130. "stylelint-config-standard": "^24.0.0",
  131. "stylelint-order": "^5.0.0",
  132. "ts-jest": "^27.1.5",
  133. "ts-node": "^10.9.1",
  134. "typescript": "^4.8.3",
  135. "vite": "^2.9.15",
  136. "vite-plugin-compression": "^0.4.0",
  137. "vite-plugin-html": "^2.1.2",
  138. "vite-plugin-imagemin": "^0.5.3",
  139. "vite-plugin-mock": "^2.9.6",
  140. "vite-plugin-purge-icons": "^0.7.0",
  141. "vite-plugin-pwa": "^0.11.13",
  142. "vite-plugin-rewrite-all": "^0.1.2",
  143. "vite-plugin-style-import": "^1.4.1",
  144. "vite-plugin-svg-icons": "^1.1.0",
  145. "vite-plugin-theme": "^0.8.6",
  146. "vite-plugin-vue-setup-extend": "^0.3.0",
  147. "vite-plugin-windicss": "^1.8.8",
  148. "vue-eslint-parser": "^8.3.0",
  149. "vue-tsc": "^0.30.6"
  150. },
  151. "resolutions": {
  152. "bin-wrapper": "npm:bin-wrapper-china",
  153. "rollup": "^2.56.3",
  154. "gifsicle": "5.2.0"
  155. },
  156. "config": {
  157. "commitizen": {
  158. "path": "cz-customizable"
  159. }
  160. },
  161. "repository": {
  162. "type": "git",
  163. "url": "git+http://face3d.4dage.com:7005/zhangyupeng/zfb_mp.git "
  164. },
  165. "license": "MIT",
  166. "engines": {
  167. "node": "^12 || >=14"
  168. },
  169. "lint-staged": {
  170. "*.{js,jsx,ts,tsx}": [
  171. "eslint --fix",
  172. "prettier --write"
  173. ],
  174. "{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": [
  175. "prettier --write--parser json"
  176. ],
  177. "package.json": [
  178. "prettier --write"
  179. ],
  180. "*.vue": [
  181. "eslint --fix",
  182. "prettier --write"
  183. ],
  184. "*.{scss,less,styl,html}": [
  185. "stylelint --fix",
  186. "prettier --write"
  187. ],
  188. "*.md": [
  189. "prettier --write"
  190. ]
  191. }
  192. }