package.json 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. {
  2. "name": "area-front",
  3. "version": "0.1.0",
  4. "private": true,
  5. "proxy": "http://47.108.135.38:50003",
  6. "homepage": "./",
  7. "dependencies": {
  8. "@ant-design/icons": "^4.6.3",
  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. "@antv/g2plot": "^2.3.40",
  14. "@babel/core": "7.12.3",
  15. "@craco/craco": "^6.4.2",
  16. "@pmmmwh/react-refresh-webpack-plugin": "0.4.3",
  17. "@svgr/webpack": "5.5.0",
  18. "@testing-library/jest-dom": "^5.11.4",
  19. "@testing-library/react": "^11.1.0",
  20. "@testing-library/user-event": "^12.1.10",
  21. "@types/jest": "^26.0.15",
  22. "@types/node": "^12.0.0",
  23. "@types/react": "^17.0.0",
  24. "@types/react-dom": "^17.0.0",
  25. "@types/react-router-dom": "^5.1.8",
  26. "@typescript-eslint/eslint-plugin": "^4.5.0",
  27. "@typescript-eslint/parser": "^4.5.0",
  28. "antd": "^4.17.0",
  29. "axios": "^0.21.1",
  30. "babel-eslint": "^10.1.0",
  31. "babel-jest": "^26.6.0",
  32. "babel-loader": "8.1.0",
  33. "babel-plugin-named-asset-import": "^0.3.7",
  34. "babel-preset-react-app": "^10.0.0",
  35. "bfj": "^7.0.2",
  36. "camelcase": "^6.1.0",
  37. "case-sensitive-paths-webpack-plugin": "2.3.0",
  38. "craco": "^0.0.3",
  39. "css-loader": "4.3.0",
  40. "dotenv": "8.2.0",
  41. "dotenv-expand": "5.1.0",
  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. "identity-obj-proxy": "3.0.0",
  56. "jest": "26.6.0",
  57. "jest-circus": "26.6.0",
  58. "jest-resolve": "26.6.0",
  59. "jest-watch-typeahead": "0.6.1",
  60. "less-loader": "^10.2.0",
  61. "mini-css-extract-plugin": "0.11.3",
  62. "optimize-css-assets-webpack-plugin": "5.0.4",
  63. "pnp-webpack-plugin": "1.6.4",
  64. "postcss-flexbugs-fixes": "4.2.1",
  65. "postcss-loader": "3.0.0",
  66. "postcss-normalize": "8.0.1",
  67. "postcss-preset-env": "6.7.0",
  68. "postcss-safe-parser": "5.0.2",
  69. "prompts": "2.4.0",
  70. "query-string": "^7.0.1",
  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-refresh": "^0.8.3",
  76. "react-router": "^5.2.0",
  77. "react-router-dom": "^5.2.0",
  78. "react-scripts": "^4.0.3",
  79. "resolve": "1.18.1",
  80. "resolve-url-loader": "^3.1.2",
  81. "sass": "^1.38.1",
  82. "sass-loader": "^10.0.5",
  83. "semver": "7.3.2",
  84. "sha256": "^0.2.0",
  85. "style-loader": "1.3.0",
  86. "terser-webpack-plugin": "4.2.3",
  87. "ts-pnp": "1.2.0",
  88. "typescript": "^4.1.2",
  89. "url-loader": "4.1.1",
  90. "web-vitals": "^1.0.1",
  91. "webpack": "4.44.2",
  92. "webpack-dev-server": "3.11.1",
  93. "webpack-manifest-plugin": "2.2.0",
  94. "workbox-webpack-plugin": "5.1.4"
  95. },
  96. "scripts": {
  97. "start": "node scripts/start.js",
  98. "build": "node scripts/build.js",
  99. "test": "node scripts/test.js",
  100. "start2": "craco start",
  101. "build2": "craco build",
  102. "test2": "craco test"
  103. },
  104. "eslintConfig": {
  105. "extends": [
  106. "react-app",
  107. "react-app/jest"
  108. ]
  109. },
  110. "browserslist": {
  111. "production": [
  112. ">0.2%",
  113. "not dead",
  114. "not op_mini all"
  115. ],
  116. "development": [
  117. "last 1 chrome version",
  118. "last 1 firefox version",
  119. "last 1 safari version"
  120. ]
  121. },
  122. "jest": {
  123. "roots": [
  124. "<rootDir>/src"
  125. ],
  126. "collectCoverageFrom": [
  127. "src/**/*.{js,jsx,ts,tsx}",
  128. "!src/**/*.d.ts"
  129. ],
  130. "setupFiles": [
  131. "react-app-polyfill/jsdom"
  132. ],
  133. "setupFilesAfterEnv": [
  134. "<rootDir>/src/setupTests.ts"
  135. ],
  136. "testMatch": [
  137. "<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
  138. "<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
  139. ],
  140. "testEnvironment": "jsdom",
  141. "testRunner": "/Users/void/sjzn/area-front/node_modules/jest-circus/runner.js",
  142. "transform": {
  143. "^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
  144. "^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
  145. "^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
  146. },
  147. "transformIgnorePatterns": [
  148. "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
  149. "^.+\\.module\\.(css|sass|scss)$"
  150. ],
  151. "modulePaths": [],
  152. "moduleNameMapper": {
  153. "^react-native$": "react-native-web",
  154. "^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
  155. },
  156. "moduleFileExtensions": [
  157. "web.js",
  158. "js",
  159. "web.ts",
  160. "ts",
  161. "web.tsx",
  162. "tsx",
  163. "json",
  164. "web.jsx",
  165. "jsx",
  166. "node"
  167. ],
  168. "watchPlugins": [
  169. "jest-watch-typeahead/filename",
  170. "jest-watch-typeahead/testname"
  171. ],
  172. "resetMocks": true
  173. },
  174. "babel": {
  175. "presets": [
  176. "react-app"
  177. ]
  178. },
  179. "devDependencies": {
  180. "autoprefixer": "^9.8.8",
  181. "cz-conventional-changelog": "^3.3.0",
  182. "postcss": "^7.0.39",
  183. "tailwindcss": "npm:@tailwindcss/postcss7-compat"
  184. },
  185. "config": {
  186. "commitizen": {
  187. "path": "./node_modules/cz-conventional-changelog"
  188. }
  189. }
  190. }