package.json 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. {
  2. "name": "my-app",
  3. "version": "0.1.0",
  4. "private": true,
  5. "homepage": ".",
  6. "main": "dist/main.cjs.js",
  7. "module": "dist/main.esm.js",
  8. "common": "dist/main.js",
  9. "source": "src/index.js",
  10. "dependencies": {
  11. "@ant-design/compatible": "^1.0.8",
  12. "@ant-design/icons": "^4.6.2",
  13. "antd": "^4.15.0",
  14. "brace": "0.10.0",
  15. "form-render": "^0.10.5",
  16. "generate-schema": "^2.6.0",
  17. "lodash": "^4.17.21",
  18. "moox": "^1.0.8",
  19. "react": "^16.12.0",
  20. "react-dom": "^16.12.0",
  21. "react-redux": "^6.0.0",
  22. "redux": "^4.0.5"
  23. },
  24. "devDependencies": {
  25. "@babel/cli": "^7.13.14",
  26. "@babel/core": "^7.13.14",
  27. "@babel/plugin-proposal-class-properties": "^7.13.0",
  28. "@babel/plugin-proposal-decorators": "^7.13.5",
  29. "@babel/plugin-syntax-jsx": "^7.12.13",
  30. "@babel/plugin-transform-react-jsx": "^7.13.12",
  31. "@babel/plugin-transform-runtime": "^7.13.10",
  32. "@babel/preset-env": "^7.13.12",
  33. "@babel/preset-react": "^7.13.13",
  34. "@pmmmwh/react-refresh-webpack-plugin": "0.4.3",
  35. "@rollup/plugin-babel": "^5.3.0",
  36. "@rollup/plugin-node-resolve": "^11.2.1",
  37. "@svgr/webpack": "5.5.0",
  38. "@testing-library/jest-dom": "^5.11.4",
  39. "@testing-library/react": "^11.1.0",
  40. "@testing-library/user-event": "^12.1.10",
  41. "@typescript-eslint/eslint-plugin": "^4.5.0",
  42. "@typescript-eslint/parser": "^4.5.0",
  43. "babel-eslint": "^10.1.0",
  44. "babel-jest": "^26.6.0",
  45. "babel-loader": "8.1.0",
  46. "babel-plugin-named-asset-import": "^0.3.7",
  47. "babel-preset-react-app": "^10.0.0",
  48. "bfj": "^7.0.2",
  49. "camelcase": "^6.1.0",
  50. "case-sensitive-paths-webpack-plugin": "2.3.0",
  51. "cross-env": "^7.0.3",
  52. "css-loader": "^5.2.0",
  53. "dotenv": "8.2.0",
  54. "dotenv-expand": "5.1.0",
  55. "eslint": "^7.11.0",
  56. "eslint-config-react-app": "^6.0.0",
  57. "eslint-plugin-flowtype": "^5.2.0",
  58. "eslint-plugin-import": "^2.22.1",
  59. "eslint-plugin-jest": "^24.1.0",
  60. "eslint-plugin-jsx-a11y": "^6.3.1",
  61. "eslint-plugin-react": "^7.21.5",
  62. "eslint-plugin-react-hooks": "^4.2.0",
  63. "eslint-plugin-testing-library": "^3.9.2",
  64. "eslint-webpack-plugin": "^2.5.2",
  65. "file-loader": "6.1.1",
  66. "fs-extra": "^9.0.1",
  67. "html-webpack-plugin": "4.5.0",
  68. "identity-obj-proxy": "3.0.0",
  69. "jest": "26.6.0",
  70. "jest-circus": "26.6.0",
  71. "jest-resolve": "26.6.0",
  72. "jest-watch-typeahead": "0.6.1",
  73. "less": "^4.1.1",
  74. "less-loader": "5.0.0",
  75. "mini-css-extract-plugin": "^1.4.0",
  76. "npm-run-all": "^4.1.5",
  77. "optimize-css-assets-webpack-plugin": "5.0.4",
  78. "pnp-webpack-plugin": "1.6.4",
  79. "postcss": "^8.2.9",
  80. "postcss-flexbugs-fixes": "4.2.1",
  81. "postcss-loader": "3.0.0",
  82. "postcss-normalize": "8.0.1",
  83. "postcss-preset-env": "6.7.0",
  84. "postcss-safe-parser": "5.0.2",
  85. "prompts": "2.4.0",
  86. "react-addons-perf": "^15.4.2",
  87. "react-app-polyfill": "^2.0.0",
  88. "react-dev-utils": "^11.0.3",
  89. "react-refresh": "^0.8.3",
  90. "resolve": "1.18.1",
  91. "resolve-url-loader": "^3.1.2",
  92. "rollup": "^2.44.0",
  93. "rollup-plugin-ascii": "^0.0.3",
  94. "rollup-plugin-commonjs": "^10.1.0",
  95. "rollup-plugin-delete": "^2.0.0",
  96. "rollup-plugin-peer-deps-external": "^2.2.4",
  97. "rollup-plugin-postcss": "^4.0.0",
  98. "rollup-plugin-terser": "^7.0.2",
  99. "sass-loader": "^10.0.5",
  100. "semver": "7.3.2",
  101. "style-loader": "^2.0.0",
  102. "terser-webpack-plugin": "4.2.3",
  103. "ts-pnp": "1.2.0",
  104. "url-loader": "4.1.1",
  105. "web-vitals": "^1.0.1",
  106. "webpack": "4.44.2",
  107. "webpack-bundle-analyzer": "^4.4.0",
  108. "webpack-cli": "^4.6.0",
  109. "webpack-dev-server": "3.11.1",
  110. "webpack-manifest-plugin": "2.2.0",
  111. "webpack-merge": "^5.7.3",
  112. "workbox-webpack-plugin": "5.1.4"
  113. },
  114. "scripts": {
  115. "start": "node scripts/start.js",
  116. "build": "node scripts/build.js",
  117. "package": "webpack --config scripts/package.js",
  118. "analyze": "cross-env NODE_ENV=production npm_config_report=true npm run package",
  119. "rollup": "rollup -c",
  120. "test": "webpack --config scripts/test.js",
  121. "eslint-fix": "eslint src/**/*.* --fix"
  122. },
  123. "eslintConfig": {
  124. "extends": [
  125. "react-app",
  126. "react-app/jest"
  127. ],
  128. "rules": {
  129. "import/no-anonymous-default-export": "off"
  130. }
  131. },
  132. "browserslist": {
  133. "production": [
  134. ">0.2%",
  135. "not dead",
  136. "not op_mini all"
  137. ],
  138. "development": [
  139. "last 1 chrome version",
  140. "last 1 firefox version",
  141. "last 1 safari version"
  142. ]
  143. },
  144. "jest": {
  145. "roots": [
  146. "<rootDir>/src"
  147. ],
  148. "collectCoverageFrom": [
  149. "src/**/*.{js,jsx,ts,tsx}",
  150. "!src/**/*.d.ts"
  151. ],
  152. "setupFiles": [
  153. "react-app-polyfill/jsdom"
  154. ],
  155. "setupFilesAfterEnv": [
  156. "<rootDir>/src/setupTests.js"
  157. ],
  158. "testMatch": [
  159. "<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
  160. "<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
  161. ],
  162. "testEnvironment": "jsdom",
  163. "testRunner": "E:\\11\\my-app\\node_modules\\jest-circus\\runner.js",
  164. "transform": {
  165. "^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
  166. "^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
  167. "^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
  168. },
  169. "transformIgnorePatterns": [
  170. "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
  171. "^.+\\.module\\.(css|sass|scss)$"
  172. ],
  173. "modulePaths": [],
  174. "moduleNameMapper": {
  175. "^react-native$": "react-native-web",
  176. "^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
  177. },
  178. "moduleFileExtensions": [
  179. "web.js",
  180. "js",
  181. "web.ts",
  182. "ts",
  183. "web.tsx",
  184. "tsx",
  185. "json",
  186. "web.jsx",
  187. "jsx",
  188. "node"
  189. ],
  190. "watchPlugins": [
  191. "jest-watch-typeahead/filename",
  192. "jest-watch-typeahead/testname"
  193. ],
  194. "resetMocks": true
  195. }
  196. }