package.json 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. {
  2. "name": "dyh-evaluation-admin",
  3. "version": "1.2.6",
  4. "private": true,
  5. "dependencies": {
  6. "@ant-design/icons": "^5.1.4",
  7. "@ant-design/pro-components": "^2.8.1",
  8. "@babel/core": "^7.16.0",
  9. "@dage/pc-components": "^1.3.4",
  10. "@dage/service": "^1.0.3",
  11. "@dage/utils": "^1.0.2",
  12. "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
  13. "@svgr/webpack": "^5.5.0",
  14. "@testing-library/jest-dom": "^5.16.5",
  15. "@testing-library/react": "^13.4.0",
  16. "@testing-library/user-event": "^13.5.0",
  17. "@types/jest": "^27.5.2",
  18. "@types/node": "^16.18.38",
  19. "@types/react": "^18.2.16",
  20. "@types/react-dom": "^18.2.6",
  21. "antd": "^5.8.2",
  22. "babel-jest": "^27.4.2",
  23. "babel-loader": "^8.2.3",
  24. "babel-plugin-named-asset-import": "^0.3.8",
  25. "babel-preset-react-app": "^10.0.1",
  26. "bfj": "^7.0.2",
  27. "browserslist": "^4.18.1",
  28. "camelcase": "^6.2.1",
  29. "case-sensitive-paths-webpack-plugin": "^2.4.0",
  30. "classnames": "^2.5.1",
  31. "css-loader": "^6.5.1",
  32. "css-minimizer-webpack-plugin": "^3.2.0",
  33. "docxtemplater": "^3.54.0",
  34. "dotenv": "^10.0.0",
  35. "dotenv-expand": "^5.1.0",
  36. "echarts-for-react": "^3.0.2",
  37. "eslint": "^8.3.0",
  38. "eslint-config-react-app": "^7.0.1",
  39. "eslint-webpack-plugin": "^3.1.1",
  40. "file-loader": "^6.2.0",
  41. "file-saver": "^2.0.5",
  42. "fs-extra": "^10.0.0",
  43. "html-webpack-plugin": "^5.5.0",
  44. "identity-obj-proxy": "^3.0.0",
  45. "jest": "^27.4.3",
  46. "jest-resolve": "^27.4.2",
  47. "jest-watch-typeahead": "^1.0.0",
  48. "js-base64": "^3.7.5",
  49. "jszip-utils": "^0.1.0",
  50. "lodash": "^4.17.21",
  51. "mini-css-extract-plugin": "^2.4.5",
  52. "path-to-regexp": "^8.2.0",
  53. "pizzip": "^3.1.7",
  54. "postcss": "^8.4.4",
  55. "postcss-flexbugs-fixes": "^5.0.2",
  56. "postcss-loader": "^6.2.1",
  57. "postcss-normalize": "^10.0.1",
  58. "postcss-preset-env": "^7.0.1",
  59. "prompts": "^2.4.2",
  60. "react": "^18.2.0",
  61. "react-app-polyfill": "^3.0.0",
  62. "react-dev-utils": "^12.0.1",
  63. "react-dom": "^18.2.0",
  64. "react-redux": "^8.1.1",
  65. "react-refresh": "^0.11.0",
  66. "react-router-dom": "^6.14.1",
  67. "redux": "^4.2.1",
  68. "redux-devtools-extension": "^2.13.9",
  69. "redux-thunk": "^2.4.2",
  70. "resolve": "^1.20.0",
  71. "resolve-url-loader": "^4.0.0",
  72. "sass-loader": "^12.3.0",
  73. "semver": "^7.3.5",
  74. "source-map-loader": "^3.0.0",
  75. "style-loader": "^3.3.1",
  76. "tailwindcss": "^3.0.2",
  77. "terser-webpack-plugin": "^5.2.5",
  78. "typescript": "^4.9.5",
  79. "web-vitals": "^2.1.4",
  80. "webpack": "^5.64.4",
  81. "webpack-dev-server": "^4.6.0",
  82. "webpack-manifest-plugin": "^4.0.2",
  83. "workbox-webpack-plugin": "^6.4.1"
  84. },
  85. "scripts": {
  86. "start": "cross-env REACT_APP_API_URL=http://192.168.20.61:8090 REACT_APP_IMG_PUBLIC=/api node scripts/start.js",
  87. "build": "cross-env PUBLIC_URL=./ REACT_APP_API_URL=https://sit-shgybwg.4dage.com REACT_APP_IMG_PUBLIC= node scripts/build.js"
  88. },
  89. "eslintConfig": {
  90. "extends": [
  91. "react-app",
  92. "react-app/jest"
  93. ]
  94. },
  95. "browserslist": {
  96. "production": [
  97. ">0.2%",
  98. "not dead",
  99. "not op_mini all"
  100. ],
  101. "development": [
  102. "last 1 chrome version",
  103. "last 1 firefox version",
  104. "last 1 safari version"
  105. ]
  106. },
  107. "devDependencies": {
  108. "@types/lodash": "^4.14.195",
  109. "babel-plugin-import": "^1.13.6",
  110. "cross-env": "^7.0.3",
  111. "sass": "^1.63.6"
  112. },
  113. "jest": {
  114. "roots": [
  115. "<rootDir>/src"
  116. ],
  117. "collectCoverageFrom": [
  118. "src/**/*.{js,jsx,ts,tsx}",
  119. "!src/**/*.d.ts"
  120. ],
  121. "setupFiles": [
  122. "react-app-polyfill/jsdom"
  123. ],
  124. "setupFilesAfterEnv": [],
  125. "testMatch": [
  126. "<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
  127. "<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
  128. ],
  129. "testEnvironment": "jsdom",
  130. "transform": {
  131. "^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
  132. "^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
  133. "^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
  134. },
  135. "transformIgnorePatterns": [
  136. "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
  137. "^.+\\.module\\.(css|sass|scss)$"
  138. ],
  139. "modulePaths": [],
  140. "moduleNameMapper": {
  141. "^react-native$": "react-native-web",
  142. "^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
  143. },
  144. "moduleFileExtensions": [
  145. "web.js",
  146. "js",
  147. "web.ts",
  148. "ts",
  149. "web.tsx",
  150. "tsx",
  151. "json",
  152. "web.jsx",
  153. "jsx",
  154. "node"
  155. ],
  156. "watchPlugins": [
  157. "jest-watch-typeahead/filename",
  158. "jest-watch-typeahead/testname"
  159. ],
  160. "resetMocks": true
  161. },
  162. "babel": {
  163. "presets": [
  164. "react-app"
  165. ]
  166. }
  167. }