-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
87 lines (87 loc) · 3.07 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"name": "react-h5-tmp",
"version": "v1.3.3",
"private": true,
"dependencies": {
"@craco/craco": "6.4.5",
"@reduxjs/toolkit": "1.8.3",
"@testing-library/jest-dom": "5.16.4",
"@testing-library/react": "13.3.0",
"@testing-library/user-event": "13.5.0",
"antd-mobile": "5.20.0",
"antd-mobile-icons": "^0.3.0",
"axios": "0.27.2",
"css-minimizer-webpack-plugin": "^4.2.2",
"dotenv-cli": "6.0.0",
"es6-proxy-polyfill": "2.1.1",
"eslint-plugin-react-hooks": "4.6.0",
"events": "3.3.0",
"isomorphic-fetch": "3.0.0",
"lodash": "4.17.21",
"nth-check": "2.1.1",
"qs": "^6.11.0",
"react": "18.2.0",
"react-app-polyfill": "3.0.0",
"react-dom": "18.2.0",
"react-redux": "8.0.2",
"react-router-dom": "6.3.0",
"react-scripts": "5.0.1",
"source-map-explorer": "2.5.2",
"vconsole": "3.14.6",
"web-vitals": "2.1.4"
},
"devDependencies": {
"@babel/preset-env": "7.18.10",
"autoprefixer": "10.4.7",
"eslint": "8.21.0",
"eslint-config-prettier": "8.5.0",
"eslint-config-standard": "17.0.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-n": "15.2.4",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-promise": "6.0.0",
"eslint-plugin-react": "7.30.1",
"postcss": "8.4.14",
"postcss-loader": "7.0.1",
"postcss-pxtorem": "5.1.1",
"prettier": "2.7.1",
"sass": "1.54.0",
"sass-loader": "13.0.2"
},
"scripts": {
"start": "dotenv -e .env.development craco start",
"build": "dotenv -e .env.production craco build",
"build:test": "dotenv -e .env.test craco build",
"build:prod": "dotenv -e .env.production craco build",
"eject": "react-scripts eject",
"lint:prettier": "npx prettier --write src/ --config ./.prettierrc.js",
"lint:fix": "npx eslint --ext .js,.jsx ./ --fix",
"analyze": "source-map-explorer 'build/static/js/*.js'"
},
"scripts-info": {
"start": "运行开发环境服务器",
"build": "构建生产程序包",
"build:prod": "构建生产程序包",
"build:test": "构建灰度程序包",
"lint:prettier": "格式化src/下所有文件",
"lint:fix": "对src/.js文件进行lint,并尝试修复一些格式类的错误,语法类需要手动修复",
"analyze": "该命令旨在分析捆绑包大小。你需要在test环境配置文件(.env.test)中设置 REACT_APP_GENERATE_SOURCEMAP 为 true,先运行 npm run build:test,然后运行 npm run analyze 即可"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version",
"ie 11"
]
},
"engines": {
"node": ">=14",
"pnpm": ">=3"
}
}