package.json 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. {
  2. "name": "zfb-mp",
  3. "version": "4.0.0",
  4. "scripts": {
  5. "bootstrap": "pnpm install",
  6. "serve": "npm run dev",
  7. "dev": "vite --debug",
  8. "build": "cross-env NODE_ENV=production vite build && esno ./build/script/postBuild.ts",
  9. "build:test": "cross-env vite build --mode test && esno ./build/script/postBuild.ts",
  10. "build:no-cache": "pnpm clean:cache && npm run build",
  11. "report": "cross-env REPORT=true npm run build",
  12. "type:check": "vue-tsc --noEmit --skipLibCheck",
  13. "preview": "npm run build && vite preview",
  14. "preview:dist": "vite preview",
  15. "log": "conventional-changelog -p angular -i CHANGELOG.md -s",
  16. "clean:cache": "rimraf node_modules/.cache/ && rimraf node_modules/.vite",
  17. "clean:lib": "rimraf node_modules",
  18. "lint:eslint": "eslint --cache --max-warnings 0 \"{src,mock}/**/*.{vue,ts,tsx}\" --fix",
  19. "lint:prettier": "prettier --write \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"",
  20. "lint:stylelint": "stylelint --cache --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
  21. "lint:lint-staged": "lint-staged",
  22. "test:unit": "jest",
  23. "test:unit-coverage": "jest --coverage",
  24. "test:gzip": "npx http-server dist --cors --gzip -c-1",
  25. "test:br": "npx http-server dist --cors --brotli -c-1",
  26. "reinstall": "rimraf pnpm-lock.yaml && rimraf package.lock.json && rimraf node_modules && npm run bootstrap",
  27. "prepare": "node -e \"if(require('fs').existsSync('.git')){process.exit(1)}\" || husky install",
  28. "gen:icon": "esno ./build/generate/icon/index.ts"
  29. },
  30. "dependencies": {
  31. "@ant-design/colors": "^6.0.0",
  32. "@ant-design/icons-vue": "^6.0.1",
  33. "@iconify/iconify": "^2.1.0",
  34. "@logicflow/core": "^0.7.16",
  35. "@logicflow/extension": "^0.7.16",
  36. "@vue/runtime-core": "^3.2.26",
  37. "@vue/shared": "^3.2.26",
  38. "@vueuse/core": "^7.4.1",
  39. "@vueuse/shared": "^7.4.1",
  40. "@zxcvbn-ts/core": "^1.2.0",
  41. "ant-design-vue": "3.0.0-beta.7",
  42. "axios": "^0.24.0",
  43. "codemirror": "^5.65.0",
  44. "cropperjs": "^1.5.12",
  45. "crypto-js": "^4.1.1",
  46. "dayjs": "^1.10.7",
  47. "echarts": "^5.2.2",
  48. "intro.js": "^4.3.0",
  49. "lodash-es": "^4.17.21",
  50. "mockjs": "^1.1.0",
  51. "moment": "^2.29.1",
  52. "nprogress": "^0.2.0",
  53. "path-to-regexp": "^6.2.0",
  54. "pinia": "2.0.9",
  55. "print-js": "^1.6.0",
  56. "qrcode": "^1.5.0",
  57. "qs": "^6.10.2",
  58. "resize-observer-polyfill": "^1.5.1",
  59. "showdown": "^1.9.1",
  60. "sortablejs": "^1.14.0",
  61. "tinymce": "^5.10.2",
  62. "vditor": "^3.8.10",
  63. "vue": "^3.2.26",
  64. "vue-i18n": "^9.1.9",
  65. "vue-json-pretty": "^1.8.2",
  66. "vue-router": "^4.0.12",
  67. "vue-types": "^4.1.1",
  68. "xlsx": "^0.17.4"
  69. },
  70. "devDependencies": {
  71. "@commitlint/cli": "^16.0.1",
  72. "@commitlint/config-conventional": "^16.0.0",
  73. "@iconify/json": "^2.0.16",
  74. "@purge-icons/generated": "^0.7.0",
  75. "@types/codemirror": "^5.60.5",
  76. "@types/crypto-js": "^4.0.2",
  77. "@types/fs-extra": "^9.0.13",
  78. "@types/inquirer": "^8.1.3",
  79. "@types/intro.js": "^3.0.2",
  80. "@types/jest": "^27.0.3",
  81. "@types/lodash-es": "^4.17.5",
  82. "@types/mockjs": "^1.0.4",
  83. "@types/node": "^17.0.5",
  84. "@types/nprogress": "^0.2.0",
  85. "@types/qrcode": "^1.4.2",
  86. "@types/qs": "^6.9.7",
  87. "@types/showdown": "^1.9.4",
  88. "@types/sortablejs": "^1.10.7",
  89. "@typescript-eslint/eslint-plugin": "^5.8.1",
  90. "@typescript-eslint/parser": "^5.8.1",
  91. "@vitejs/plugin-legacy": "^1.6.4",
  92. "@vitejs/plugin-vue": "^2.0.1",
  93. "@vitejs/plugin-vue-jsx": "^1.3.3",
  94. "@vue/compiler-sfc": "3.2.26",
  95. "@vue/test-utils": "^2.0.0-rc.18",
  96. "autoprefixer": "^10.4.0",
  97. "commitizen": "^4.2.4",
  98. "conventional-changelog-cli": "^2.2.2",
  99. "cross-env": "^7.0.3",
  100. "dotenv": "^10.0.0",
  101. "eslint": "^8.5.0",
  102. "eslint-config-prettier": "^8.3.0",
  103. "eslint-define-config": "^1.2.1",
  104. "eslint-plugin-jest": "^25.3.2",
  105. "eslint-plugin-prettier": "^4.0.0",
  106. "eslint-plugin-vue": "^8.2.0",
  107. "esno": "^0.13.0",
  108. "fs-extra": "^10.0.0",
  109. "husky": "^7.0.4",
  110. "inquirer": "^8.2.0",
  111. "jest": "^27.4.5",
  112. "less": "^4.1.2",
  113. "lint-staged": "12.1.4",
  114. "npm-run-all": "^4.1.5",
  115. "postcss": "^8.4.5",
  116. "postcss-html": "^1.3.0",
  117. "postcss-less": "^5.0.0",
  118. "prettier": "^2.5.1",
  119. "rimraf": "^3.0.2",
  120. "rollup-plugin-visualizer": "^5.5.2",
  121. "stylelint": "^14.2.0",
  122. "stylelint-config-html": "^1.0.0",
  123. "stylelint-config-prettier": "^9.0.3",
  124. "stylelint-config-recommended": "^6.0.0",
  125. "stylelint-config-standard": "^24.0.0",
  126. "stylelint-order": "^5.0.0",
  127. "ts-jest": "^27.1.2",
  128. "ts-node": "^10.4.0",
  129. "typescript": "^4.5.4",
  130. "vite": "^2.7.8",
  131. "vite-plugin-compression": "^0.4.0",
  132. "vite-plugin-html": "^2.1.2",
  133. "vite-plugin-imagemin": "^0.5.1",
  134. "vite-plugin-mock": "^2.9.6",
  135. "vite-plugin-purge-icons": "^0.7.0",
  136. "vite-plugin-pwa": "^0.11.12",
  137. "vite-plugin-rewrite-all": "^0.1.2",
  138. "vite-plugin-style-import": "^1.4.1",
  139. "vite-plugin-svg-icons": "^1.0.5",
  140. "vite-plugin-theme": "^0.8.1",
  141. "vite-plugin-vue-setup-extend": "^0.3.0",
  142. "vite-plugin-windicss": "^1.6.1",
  143. "vue-eslint-parser": "^8.0.1",
  144. "vue-tsc": "^0.30.1"
  145. },
  146. "resolutions": {
  147. "bin-wrapper": "npm:bin-wrapper-china",
  148. "rollup": "^2.56.3",
  149. "gifsicle": "5.2.0"
  150. },
  151. "repository": {
  152. "type": "git",
  153. "url": "git+http://face3d.4dage.com:7005/zhangyupeng/zfb_mp.git "
  154. },
  155. "license": "MIT",
  156. "engines": {
  157. "node": "^12 || >=14"
  158. },
  159. "lint-staged": {
  160. "*.{js,jsx,ts,tsx}": [
  161. "eslint --fix",
  162. "prettier --write"
  163. ],
  164. "{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": [
  165. "prettier --write--parser json"
  166. ],
  167. "package.json": [
  168. "prettier --write"
  169. ],
  170. "*.vue": [
  171. "eslint --fix",
  172. "prettier --write"
  173. ],
  174. "*.{scss,less,styl,html}": [
  175. "stylelint --fix",
  176. "prettier --write"
  177. ],
  178. "*.md": [
  179. "prettier --write"
  180. ]
  181. }
  182. }