package.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. {
  2. "name": "login",
  3. "sideEffects": false,
  4. "version": "0.1.0",
  5. "private": true,
  6. "homepage": "aiSquare/openApi/uc",
  7. "dependencies": {
  8. "@babel/core": "7.9.0",
  9. "@svgr/webpack": "4.3.3",
  10. "@testing-library/jest-dom": "^4.2.4",
  11. "@testing-library/react": "^9.3.2",
  12. "@testing-library/user-event": "^7.1.2",
  13. "@typescript-eslint/eslint-plugin": "^2.10.0",
  14. "@typescript-eslint/parser": "^2.10.0",
  15. "antd": "^4.1.0",
  16. "axios": "0.18.1",
  17. "babel-eslint": "10.1.0",
  18. "babel-jest": "^24.9.0",
  19. "babel-loader": "8.1.0",
  20. "babel-plugin-named-asset-import": "^0.3.6",
  21. "babel-preset-react-app": "^9.1.2",
  22. "camelcase": "^5.3.1",
  23. "case-sensitive-paths-webpack-plugin": "2.3.0",
  24. "crypto-js": "^4.0.0",
  25. "css-loader": "3.4.2",
  26. "dotenv": "8.2.0",
  27. "dotenv-expand": "5.1.0",
  28. "eslint": "^6.6.0",
  29. "eslint-config-react-app": "^5.2.1",
  30. "eslint-loader": "3.0.3",
  31. "eslint-plugin-flowtype": "4.6.0",
  32. "eslint-plugin-import": "2.20.1",
  33. "eslint-plugin-jsx-a11y": "6.2.3",
  34. "eslint-plugin-react": "7.19.0",
  35. "eslint-plugin-react-hooks": "^1.6.1",
  36. "file-loader": "4.3.0",
  37. "fs-extra": "^8.1.0",
  38. "html-webpack-plugin": "4.0.0-beta.11",
  39. "identity-obj-proxy": "3.0.0",
  40. "jest": "24.9.0",
  41. "jest-environment-jsdom-fourteen": "1.0.1",
  42. "jest-resolve": "24.9.0",
  43. "jest-watch-typeahead": "0.4.2",
  44. "js-cookie": "^2.2.1",
  45. "mini-css-extract-plugin": "0.9.0",
  46. "optimize-css-assets-webpack-plugin": "5.0.3",
  47. "pnp-webpack-plugin": "1.6.4",
  48. "postcss-flexbugs-fixes": "4.1.0",
  49. "postcss-loader": "3.0.0",
  50. "postcss-normalize": "8.0.1",
  51. "postcss-preset-env": "6.7.0",
  52. "postcss-safe-parser": "4.0.1",
  53. "prop-types": "^15.7.2",
  54. "react": "^16.13.1",
  55. "react-app-polyfill": "^1.0.6",
  56. "react-dev-utils": "^10.2.1",
  57. "react-dom": "^16.13.1",
  58. "react-helmet": "^6.1.0",
  59. "react-scripts": "3.4.1",
  60. "resolve": "1.15.0",
  61. "resolve-url-loader": "3.1.1",
  62. "sass-loader": "8.0.2",
  63. "semver": "6.3.0",
  64. "style-loader": "0.23.1",
  65. "styled-components": "^5.1.1",
  66. "terser-webpack-plugin": "2.3.5",
  67. "ts-pnp": "1.1.6",
  68. "url-loader": "2.3.0",
  69. "webpack": "4.42.0",
  70. "webpack-dev-server": "3.10.3",
  71. "webpack-manifest-plugin": "2.2.0",
  72. "workbox-webpack-plugin": "4.3.1"
  73. },
  74. "scripts": {
  75. "start": "node scripts/start.js",
  76. "build": "node scripts/build.js",
  77. "test": "node scripts/test.js",
  78. "uglify": "uglifyjs static/static/js/1.js -m -o static/static/js/1.js"
  79. },
  80. "eslintConfig": {
  81. "extends": "react-app"
  82. },
  83. "browserslist": {
  84. "production": [
  85. ">0.2%",
  86. "not dead",
  87. "not op_mini all"
  88. ],
  89. "development": [
  90. "last 1 chrome version",
  91. "last 1 firefox version",
  92. "last 1 safari version"
  93. ]
  94. },
  95. "jest": {
  96. "roots": [
  97. "<rootDir>/src"
  98. ],
  99. "collectCoverageFrom": [
  100. "src/**/*.{js,jsx,ts,tsx}",
  101. "!src/**/*.d.ts"
  102. ],
  103. "setupFiles": [
  104. "react-app-polyfill/jsdom"
  105. ],
  106. "setupFilesAfterEnv": [
  107. "<rootDir>/src/setupTests.js"
  108. ],
  109. "testMatch": [
  110. "<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
  111. "<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
  112. ],
  113. "testEnvironment": "jest-environment-jsdom-fourteen",
  114. "transform": {
  115. "^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest",
  116. "^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
  117. "^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
  118. },
  119. "transformIgnorePatterns": [
  120. "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$",
  121. "^.+\\.module\\.(css|sass|scss)$"
  122. ],
  123. "modulePaths": [],
  124. "moduleNameMapper": {
  125. "^react-native$": "react-native-web",
  126. "^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
  127. },
  128. "moduleFileExtensions": [
  129. "web.js",
  130. "js",
  131. "web.ts",
  132. "ts",
  133. "web.tsx",
  134. "tsx",
  135. "json",
  136. "web.jsx",
  137. "jsx",
  138. "node"
  139. ],
  140. "watchPlugins": [
  141. "jest-watch-typeahead/filename",
  142. "jest-watch-typeahead/testname"
  143. ]
  144. },
  145. "babel": {
  146. "presets": [
  147. "react-app"
  148. ],
  149. "plugins": [
  150. [
  151. "import",
  152. {
  153. "libraryName": "antd",
  154. "libraryDirectory": "es",
  155. "style": true
  156. }
  157. ]
  158. ]
  159. },
  160. "devDependencies": {
  161. "babel-plugin-import": "^1.13.0",
  162. "compression-webpack-plugin": "^5.0.2",
  163. "uglify-js": "^3.10.4",
  164. "webpack-bundle-analyzer": "^3.8.0"
  165. }
  166. }