package.json 4.4 KB

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