package.json 5.0 KB

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