package.json 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. {
  2. "name": "area-front",
  3. "version": "0.1.0",
  4. "private": true,
  5. "dependencies": {
  6. "@ant-design/icons": "^4.6.3",
  7. "@ant-design/pro-descriptions": "^1.9.6",
  8. "@ant-design/pro-form": "^1.35.0",
  9. "@ant-design/pro-layout": "^6.24.1",
  10. "@ant-design/pro-table": "^2.49.0",
  11. "@babel/core": "7.12.3",
  12. "@craco/craco": "^6.4.2",
  13. "@pmmmwh/react-refresh-webpack-plugin": "0.4.3",
  14. "@svgr/webpack": "5.5.0",
  15. "@testing-library/jest-dom": "^5.11.4",
  16. "@testing-library/react": "^11.1.0",
  17. "@testing-library/user-event": "^12.1.10",
  18. "@types/jest": "^26.0.15",
  19. "@types/node": "^12.0.0",
  20. "@types/react": "^17.0.0",
  21. "@types/react-dom": "^17.0.0",
  22. "@types/react-router-dom": "^5.1.8",
  23. "@typescript-eslint/eslint-plugin": "^4.5.0",
  24. "@typescript-eslint/parser": "^4.5.0",
  25. "amap": "^1.0.7",
  26. "antd": "^4.22.7",
  27. "axios": "^0.21.1",
  28. "babel-eslint": "^10.1.0",
  29. "babel-jest": "^26.6.0",
  30. "babel-loader": "8.1.0",
  31. "babel-plugin-named-asset-import": "^0.3.7",
  32. "babel-preset-react-app": "^10.0.0",
  33. "bfj": "^7.0.2",
  34. "camelcase": "^6.1.0",
  35. "case-sensitive-paths-webpack-plugin": "2.3.0",
  36. "craco": "^0.0.3",
  37. "craco-less": "^2.0.0",
  38. "css-loader": "4.3.0",
  39. "dotenv": "8.2.0",
  40. "dotenv-expand": "5.1.0",
  41. "echarts": "^5.3.3",
  42. "eslint": "^7.11.0",
  43. "eslint-config-react-app": "^6.0.0",
  44. "eslint-plugin-flowtype": "^5.2.0",
  45. "eslint-plugin-import": "^2.22.1",
  46. "eslint-plugin-jest": "^24.1.0",
  47. "eslint-plugin-jsx-a11y": "^6.3.1",
  48. "eslint-plugin-react": "^7.21.5",
  49. "eslint-plugin-react-hooks": "^4.2.0",
  50. "eslint-plugin-testing-library": "^3.9.2",
  51. "eslint-webpack-plugin": "^2.5.2",
  52. "file-loader": "6.1.1",
  53. "fs-extra": "^9.0.1",
  54. "html-webpack-plugin": "4.5.0",
  55. "http-proxy-middleware": "^2.0.6",
  56. "identity-obj-proxy": "3.0.0",
  57. "jest": "26.6.0",
  58. "jest-circus": "26.6.0",
  59. "jest-resolve": "26.6.0",
  60. "jest-watch-typeahead": "0.6.1",
  61. "less": "^4.1.3",
  62. "less-loader": "^11.1.0",
  63. "mini-css-extract-plugin": "0.11.3",
  64. "optimize-css-assets-webpack-plugin": "5.0.4",
  65. "pnp-webpack-plugin": "1.6.4",
  66. "postcss-flexbugs-fixes": "4.2.1",
  67. "postcss-loader": "3.0.0",
  68. "postcss-normalize": "8.0.1",
  69. "postcss-preset-env": "6.7.0",
  70. "postcss-safe-parser": "5.0.2",
  71. "prompts": "2.4.0",
  72. "react": "^17.0.2",
  73. "react-amap": "^1.2.8",
  74. "react-app-polyfill": "^2.0.0",
  75. "react-dev-utils": "^11.0.3",
  76. "react-dom": "^17.0.2",
  77. "react-refresh": "^0.8.3",
  78. "react-router": "^5.2.0",
  79. "react-router-dom": "^5.2.0",
  80. "react-scripts": "^4.0.3",
  81. "resolve": "1.18.1",
  82. "resolve-url-loader": "^3.1.2",
  83. "sass": "^1.38.1",
  84. "sass-loader": "^10.0.5",
  85. "semver": "7.3.2",
  86. "sha256": "^0.2.0",
  87. "style-loader": "1.3.0",
  88. "terser-webpack-plugin": "4.2.3",
  89. "ts-pnp": "1.2.0",
  90. "typescript": "^4.1.2",
  91. "url-loader": "4.1.1",
  92. "web-vitals": "^1.0.1",
  93. "webpack": "4.44.2",
  94. "webpack-dev-server": "3.11.1",
  95. "webpack-manifest-plugin": "2.2.0",
  96. "workbox-webpack-plugin": "5.1.4"
  97. },
  98. "scripts": {
  99. "start": "craco start",
  100. "build": "craco build",
  101. "test": "craco test"
  102. },
  103. "eslintConfig": {
  104. "extends": [
  105. "react-app",
  106. "react-app/jest"
  107. ]
  108. },
  109. "browserslist": {
  110. "production": [
  111. ">0.2%",
  112. "not dead",
  113. "not op_mini all"
  114. ],
  115. "development": [
  116. "last 1 chrome version",
  117. "last 1 firefox version",
  118. "last 1 safari version"
  119. ]
  120. },
  121. "jest": {
  122. "roots": [
  123. "<rootDir>/src"
  124. ],
  125. "collectCoverageFrom": [
  126. "src/**/*.{js,jsx,ts,tsx}",
  127. "!src/**/*.d.ts"
  128. ],
  129. "setupFiles": [
  130. "react-app-polyfill/jsdom"
  131. ],
  132. "setupFilesAfterEnv": [
  133. "<rootDir>/src/setupTests.ts"
  134. ],
  135. "testMatch": [
  136. "<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
  137. "<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
  138. ],
  139. "testEnvironment": "jsdom",
  140. "testRunner": "/Users/void/sjzn/area-front/node_modules/jest-circus/runner.js",
  141. "transform": {
  142. "^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
  143. "^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
  144. "^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
  145. },
  146. "transformIgnorePatterns": [
  147. "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
  148. "^.+\\.module\\.(css|sass|scss)$"
  149. ],
  150. "modulePaths": [],
  151. "moduleNameMapper": {
  152. "^react-native$": "react-native-web",
  153. "^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
  154. },
  155. "moduleFileExtensions": [
  156. "web.js",
  157. "js",
  158. "web.ts",
  159. "ts",
  160. "web.tsx",
  161. "tsx",
  162. "json",
  163. "web.jsx",
  164. "jsx",
  165. "node"
  166. ],
  167. "watchPlugins": [
  168. "jest-watch-typeahead/filename",
  169. "jest-watch-typeahead/testname"
  170. ],
  171. "resetMocks": true
  172. },
  173. "babel": {
  174. "presets": [
  175. "react-app"
  176. ]
  177. }
  178. }