package.json 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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. "@vue/runtime-core": "^3.2.39",
  39. "@vue/shared": "^3.2.39",
  40. "@vueuse/core": "^7.7.1",
  41. "@vueuse/shared": "^7.7.1",
  42. "@zxcvbn-ts/core": "^1.2.0",
  43. "ant-design-vue": "^3.2.12",
  44. "axios": "^0.24.0",
  45. "codemirror": "^5.65.8",
  46. "cropperjs": "^1.5.12",
  47. "crypto-js": "^4.1.1",
  48. "dayjs": "^1.11.5",
  49. "echarts": "^5.3.3",
  50. "intro.js": "^4.3.0",
  51. "js-base64": "^3.7.2",
  52. "lodash-es": "^4.17.21",
  53. "mockjs": "^1.1.0",
  54. "moment": "^2.29.4",
  55. "nprogress": "^0.2.0",
  56. "path-to-regexp": "^6.2.1",
  57. "pinia": "2.0.9",
  58. "print-js": "^1.6.0",
  59. "qrcode": "^1.5.1",
  60. "qs": "^6.11.0",
  61. "resize-observer-polyfill": "^1.5.1",
  62. "showdown": "^1.9.1",
  63. "sortablejs": "^1.15.0",
  64. "tinymce": "^5.10.5",
  65. "vditor": "^3.8.17",
  66. "vue": "^3.2.39",
  67. "vue-i18n": "^9.2.2",
  68. "vue-json-pretty": "^1.9.2",
  69. "vue-router": "^4.1.5",
  70. "vue-types": "^4.2.1",
  71. "xlsx": "^0.17.5"
  72. },
  73. "devDependencies": {
  74. "@commitlint/cli": "^16.3.0",
  75. "@commitlint/config-conventional": "^16.2.4",
  76. "@iconify/json": "^2.1.109",
  77. "@purge-icons/generated": "^0.7.0",
  78. "@types/codemirror": "^5.60.5",
  79. "@types/crypto-js": "^4.1.1",
  80. "@types/fs-extra": "^9.0.13",
  81. "@types/inquirer": "^8.2.3",
  82. "@types/intro.js": "^3.0.2",
  83. "@types/jest": "^27.5.2",
  84. "@types/lodash-es": "^4.17.6",
  85. "@types/mockjs": "^1.0.6",
  86. "@types/node": "^17.0.45",
  87. "@types/nprogress": "^0.2.0",
  88. "@types/qrcode": "^1.5.0",
  89. "@types/qs": "^6.9.7",
  90. "@types/showdown": "^1.9.4",
  91. "@types/sortablejs": "^1.15.0",
  92. "@typescript-eslint/eslint-plugin": "^5.37.0",
  93. "@typescript-eslint/parser": "^5.37.0",
  94. "@vitejs/plugin-legacy": "^1.8.2",
  95. "@vitejs/plugin-vue": "^2.3.4",
  96. "@vitejs/plugin-vue-jsx": "^1.3.10",
  97. "@vue/compiler-sfc": "3.2.26",
  98. "@vue/test-utils": "^2.0.2",
  99. "autoprefixer": "^10.4.11",
  100. "commitizen": "^4.2.5",
  101. "conventional-changelog-cli": "^2.2.2",
  102. "cross-env": "^7.0.3",
  103. "cz-customizable": "^7.0.0",
  104. "dotenv": "^10.0.0",
  105. "eslint": "^8.23.1",
  106. "eslint-config-prettier": "^8.5.0",
  107. "eslint-define-config": "^1.7.0",
  108. "eslint-plugin-jest": "^25.7.0",
  109. "eslint-plugin-prettier": "^4.2.1",
  110. "eslint-plugin-vue": "^8.7.1",
  111. "esno": "^0.13.0",
  112. "fs-extra": "^10.1.0",
  113. "husky": "^7.0.4",
  114. "inquirer": "^8.2.4",
  115. "jest": "^27.5.1",
  116. "less": "^4.1.3",
  117. "lint-staged": "12.1.4",
  118. "npm-run-all": "^4.1.5",
  119. "postcss": "^8.4.16",
  120. "postcss-html": "^1.5.0",
  121. "postcss-less": "^5.0.0",
  122. "prettier": "^2.7.1",
  123. "rimraf": "^3.0.2",
  124. "rollup-plugin-visualizer": "^5.8.1",
  125. "stylelint": "^14.12.0",
  126. "stylelint-config-html": "^1.1.0",
  127. "stylelint-config-prettier": "^9.0.3",
  128. "stylelint-config-recommended": "^6.0.0",
  129. "stylelint-config-standard": "^24.0.0",
  130. "stylelint-order": "^5.0.0",
  131. "ts-jest": "^27.1.5",
  132. "ts-node": "^10.9.1",
  133. "typescript": "^4.8.3",
  134. "vite": "^2.9.15",
  135. "vite-plugin-compression": "^0.4.0",
  136. "vite-plugin-html": "^2.1.2",
  137. "vite-plugin-imagemin": "^0.5.3",
  138. "vite-plugin-mock": "^2.9.6",
  139. "vite-plugin-purge-icons": "^0.7.0",
  140. "vite-plugin-pwa": "^0.11.13",
  141. "vite-plugin-rewrite-all": "^0.1.2",
  142. "vite-plugin-style-import": "^1.4.1",
  143. "vite-plugin-svg-icons": "^1.1.0",
  144. "vite-plugin-theme": "^0.8.6",
  145. "vite-plugin-vue-setup-extend": "^0.3.0",
  146. "vite-plugin-windicss": "^1.8.8",
  147. "vue-eslint-parser": "^8.3.0",
  148. "vue-tsc": "^0.30.6"
  149. },
  150. "resolutions": {
  151. "bin-wrapper": "npm:bin-wrapper-china",
  152. "rollup": "^2.56.3",
  153. "gifsicle": "5.2.0"
  154. },
  155. "config": {
  156. "commitizen": {
  157. "path": "cz-customizable"
  158. }
  159. },
  160. "repository": {
  161. "type": "git",
  162. "url": "git+http://face3d.4dage.com:7005/zhangyupeng/zfb_mp.git "
  163. },
  164. "license": "MIT",
  165. "engines": {
  166. "node": "^12 || >=14"
  167. },
  168. "lint-staged": {
  169. "*.{js,jsx,ts,tsx}": [
  170. "eslint --fix",
  171. "prettier --write"
  172. ],
  173. "{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": [
  174. "prettier --write--parser json"
  175. ],
  176. "package.json": [
  177. "prettier --write"
  178. ],
  179. "*.vue": [
  180. "eslint --fix",
  181. "prettier --write"
  182. ],
  183. "*.{scss,less,styl,html}": [
  184. "stylelint --fix",
  185. "prettier --write"
  186. ],
  187. "*.md": [
  188. "prettier --write"
  189. ]
  190. }
  191. }