package.json 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. {
  2. "name": "mfyx_web",
  3. "version": "0.1.0",
  4. "private": true,
  5. "dependencies": {
  6. "@ahooksjs/use-request": "^2.8.1",
  7. "@ant-design/cssinjs": "^1.5.6",
  8. "@babel/core": "^7.16.0",
  9. "@material-ui/core": "^4.12.3",
  10. "@mui/material": "^5.5.0",
  11. "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
  12. "@svgr/webpack": "^5.5.0",
  13. "@testing-library/jest-dom": "^5.11.5",
  14. "@testing-library/react": "^11.1.1",
  15. "@testing-library/user-event": "^12.2.0",
  16. "@types/jest": "^26.0.15",
  17. "@types/node": "^16.18.26",
  18. "@types/react": "^17.0.1",
  19. "@types/react-beautiful-dnd": "^13.1.8",
  20. "@types/react-dom": "^17.0.1",
  21. "@types/react-infinite-scroller": "^1.2.3",
  22. "@types/react-responsive": "^8.0.2",
  23. "@types/react-router-dom": "^5.1.6",
  24. "ahooks": "^3.5.0",
  25. "antd": "^5.3.0",
  26. "antd-img-crop": "^4.6.0",
  27. "axios": "^0.21.0",
  28. "babel-jest": "^27.4.2",
  29. "babel-loader": "^8.2.3",
  30. "babel-plugin-named-asset-import": "^0.3.8",
  31. "babel-preset-react-app": "^10.0.1",
  32. "bfj": "^7.0.2",
  33. "browserslist": "^4.18.1",
  34. "buffer": "^6.0.3",
  35. "camelcase": "^6.2.1",
  36. "caniuse-lite": "^1.0.30001441",
  37. "case-sensitive-paths-webpack-plugin": "^2.4.0",
  38. "classnames": "^2.3.1",
  39. "css-loader": "^6.5.1",
  40. "css-minimizer-webpack-plugin": "^3.2.0",
  41. "dayjs": "^1.9.6",
  42. "dom-to-svg": "^0.12.2",
  43. "dotenv": "^10.0.0",
  44. "dotenv-expand": "^5.1.0",
  45. "eslint-webpack-plugin": "^4.0.1",
  46. "exceljs": "^4.3.0",
  47. "export-from-json": "^1.3.4",
  48. "file-loader": "^6.2.0",
  49. "file-saver": "^2.0.5",
  50. "fs-extra": "^10.0.0",
  51. "html-webpack-plugin": "^5.5.0",
  52. "html2canvas": "^1.4.1",
  53. "html2pdf.js": "^0.9.3",
  54. "identity-obj-proxy": "^3.0.0",
  55. "iframe-resizer-react": "^1.1.0",
  56. "jest": "^27.4.3",
  57. "jest-resolve": "^27.4.2",
  58. "jest-watch-typeahead": "^1.0.0",
  59. "jspdf": "^2.5.1",
  60. "jwt-decode": "^3.1.2",
  61. "localforage": "^1.9.0",
  62. "lodash": "^4.17.21",
  63. "material-ui-color": "^1.2.0",
  64. "md5": "^2.3.0",
  65. "mini-css-extract-plugin": "^2.4.5",
  66. "postcss": "^8.4.4",
  67. "postcss-flexbugs-fixes": "^5.0.2",
  68. "postcss-loader": "^6.2.1",
  69. "postcss-normalize": "^10.0.1",
  70. "postcss-preset-env": "^7.0.1",
  71. "prompts": "^2.4.2",
  72. "qrcode.react": "^1.0.1",
  73. "react": "^17.0.2",
  74. "react-app-polyfill": "^3.0.0",
  75. "react-beautiful-dnd": "^13.1.1",
  76. "react-dev-utils": "^12.0.1",
  77. "react-dom": "^17.0.1",
  78. "react-froala-wysiwyg": "^4.0.15",
  79. "react-grid-layout": "^1.3.4",
  80. "react-infinite-scroll-component": "^6.1.0",
  81. "react-infinite-scroller": "^1.2.6",
  82. "react-json-view": "^1.21.3",
  83. "react-masonry-css": "^1.0.16",
  84. "react-quill": "^2.0.0",
  85. "react-refresh": "^0.11.0",
  86. "react-responsive": "^8.2.0",
  87. "react-router-cache-route": "^1.12.11",
  88. "react-router-dom": "^5.2.0",
  89. "resolve": "^1.20.0",
  90. "resolve-url-loader": "^4.0.0",
  91. "sass": "^1.58.2",
  92. "sass-loader": "^12.3.0",
  93. "semver": "^7.3.5",
  94. "showdown": "^2.1.0",
  95. "source-map-explorer": "^2.5.2",
  96. "source-map-loader": "^3.0.0",
  97. "style-loader": "^3.3.1",
  98. "swiper": "^8.4.5",
  99. "terser-webpack-plugin": "^5.2.5",
  100. "typescript": "^4.3.5",
  101. "url-slug": "^2.3.2",
  102. "vconsole": "^3.15.1",
  103. "web-vitals": "^2.1.4",
  104. "webpack": "^5.64.4",
  105. "webpack-dev-server": "^4.6.0",
  106. "webpack-manifest-plugin": "^4.0.2",
  107. "weixin-js-sdk": "^1.6.0",
  108. "workbox-webpack-plugin": "^6.4.1",
  109. "xlsx": "https://cdn.sheetjs.com/xlsx-0.19.1/xlsx-0.19.1.tgz"
  110. },
  111. "scripts": {
  112. "start": "cross-env PUBLIC_URL=/ node scripts/start.js",
  113. "build": "dotenv -e .env.production node scripts/build.js",
  114. "build:dev": "dotenv -e .env.development node scripts/build.js",
  115. "test": "node scripts/test.js",
  116. "analyze": "source-map-explorer build/static/js/main.*",
  117. "ba": "export GENERATE_SOURCEMAP=true && node scripts/build.js && source-map-explorer build/static/js/*.*",
  118. "postinstall": "patch-package"
  119. },
  120. "eslintConfig": {
  121. "extends": [
  122. "react-app",
  123. "react-app/jest"
  124. ]
  125. },
  126. "browserslist": {
  127. "production": [
  128. ">0.2%",
  129. "not dead",
  130. "not op_mini all",
  131. "Chrome > 63"
  132. ],
  133. "development": [
  134. "last 1 chrome version",
  135. "last 1 firefox version",
  136. "last 1 safari version",
  137. "chrome >= 63"
  138. ]
  139. },
  140. "devDependencies": {
  141. "@types/file-saver": "^2.0.4",
  142. "@types/jspdf": "^2.0.0",
  143. "@types/lodash": "^4.14.182",
  144. "@types/md5": "^2.3.2",
  145. "@types/qrcode.react": "^1.0.2",
  146. "@types/react-grid-layout": "^1.3.2",
  147. "@types/showdown": "^2.0.1",
  148. "@typescript-eslint/eslint-plugin": "4.27.0",
  149. "@typescript-eslint/parser": "4.27.0",
  150. "better-xlsx": "^0.7.6",
  151. "cross-env": "^7.0.3",
  152. "dotenv-cli": "^5.1.0",
  153. "eslint": "7.13.0",
  154. "eslint-config-prettier": "6.15.0",
  155. "eslint-config-react-app": "6.0.0",
  156. "eslint-plugin-prettier": "3.1.4",
  157. "eslint-plugin-react": "7.24.0",
  158. "luckyexcel": "^1.0.0",
  159. "patch-package": "^6.4.7",
  160. "prettier": "^2.1.2"
  161. },
  162. "homepage": "/",
  163. "jest": {
  164. "roots": [
  165. "<rootDir>/src"
  166. ],
  167. "collectCoverageFrom": [
  168. "src/**/*.{js,jsx,ts,tsx}",
  169. "!src/**/*.d.ts"
  170. ],
  171. "setupFiles": [
  172. "react-app-polyfill/jsdom"
  173. ],
  174. "setupFilesAfterEnv": [
  175. "<rootDir>/src/setupTests.ts"
  176. ],
  177. "testMatch": [
  178. "<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
  179. "<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
  180. ],
  181. "testEnvironment": "jsdom",
  182. "transform": {
  183. "^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
  184. "^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
  185. "^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
  186. },
  187. "transformIgnorePatterns": [
  188. "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
  189. "^.+\\.module\\.(css|sass|scss)$"
  190. ],
  191. "modulePaths": [
  192. "D:\\work\\mfyx-eject-webpack\\src"
  193. ],
  194. "moduleNameMapper": {
  195. "^react-native$": "react-native-web",
  196. "^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
  197. },
  198. "moduleFileExtensions": [
  199. "web.js",
  200. "js",
  201. "web.ts",
  202. "ts",
  203. "web.tsx",
  204. "tsx",
  205. "json",
  206. "web.jsx",
  207. "jsx",
  208. "node"
  209. ],
  210. "watchPlugins": [
  211. "jest-watch-typeahead/filename",
  212. "jest-watch-typeahead/testname"
  213. ],
  214. "resetMocks": true
  215. },
  216. "babel": {
  217. "presets": [
  218. "react-app"
  219. ]
  220. }
  221. }