-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
133 lines (132 loc) · 4.11 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{
"name": "react-template",
"version": "2.0.0",
"description": "这是一个最新版的react模板,会一直维护更新,因为没有类似vue-cli那样的工具所以自己建了个",
"engines": {
"npm": ">=20"
},
"scripts": {
"preinstall": "node tools/nodeVersionCheck.js",
"dev": "vite --open --force",
"build:vite": "npm run remove-dist && vite build --mode production --emptyOutDir",
"start-message": "node tools/startMessage.js",
"prestart": "npm-run-all --parallel start-message remove-dist",
"start": "npm-run-all --parallel open:src lint test:watch",
"open:src": " webpack serve --mode development",
"open:dist": "node tools/distServer.js",
"lint": "eslint --fix --color",
"clean-dist": "npm run remove-dist && mkdir dist",
"remove-dist": "rimraf ./dist",
"prebuild": "npm run clean-dist && npm run lint",
"build": "node tools/build.js && npm run open:dist",
"test": "jest",
"test:watch": "jest --watchAll"
},
"author": "keep_wan",
"license": "MIT",
"dependencies": {
"axios": "^1.7.9",
"classnames": "^2.5.1",
"echarts": "^5.5.1",
"js-cookie": "^3.0.5",
"prop-types": "^15.8.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-helmet": "^6.1.0",
"react-redux": "^9.2.0",
"react-router-dom": "^7.0.2",
"redux": "^5.0.1",
"redux-thunk": "^3.1.0"
},
"devDependencies": {
"@babel/cli": "^7.26.4",
"@babel/core": "^7.26.0",
"@babel/eslint-parser": "^7.25.9",
"@babel/plugin-transform-arrow-functions": "^7.25.9",
"@babel/plugin-transform-async-generator-functions": "^7.25.9",
"@babel/plugin-transform-async-to-generator": "^7.25.9",
"@babel/plugin-transform-class-properties": "^7.25.9",
"@babel/plugin-transform-json-strings": "^7.25.9",
"@babel/plugin-transform-optional-chaining": "^7.25.9",
"@babel/plugin-transform-react-constant-elements": "^7.25.9",
"@babel/plugin-transform-runtime": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@babel/preset-react": "^7.26.3",
"@babel/runtime": "^7.26.0",
"@loadable/component": "^5.16.4",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
"@vitejs/plugin-react": "^4.3.4",
"autoprefixer": "^10.4.20",
"babel-jest": "^29.7.0",
"babel-loader": "^9.2.1",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"browser-sync": "^3.0.3",
"chalk": "^4.1.2",
"connect-history-api-fallback": "^2.0.0",
"copy-webpack-plugin": "^12.0.2",
"core-js": "^3.39.0",
"css-loader": "^7.1.2",
"css-minimizer-webpack-plugin": "7.0.0",
"enzyme": "^3.11.0",
"eslint": "^9.17.0",
"eslint-plugin-react": "^7.37.2",
"globals": "^15.14.0",
"html-webpack-plugin": "^5.6.3",
"jest": "^29.7.0",
"jest-cli": "^29.7.0",
"mini-css-extract-plugin": "^2.9.2",
"npm-run-all": "^4.1.5",
"open": "^10.1.0",
"postcss-import": "^16.1.0",
"postcss-loader": "^8.1.1",
"postcss-pxtorem": "^6.1.0",
"react-refresh": "^0.16.0",
"regenerator-runtime": "^0.14.1",
"rimraf": "^6.0.1",
"sass": "^1.83.0",
"sass-loader": "^16.0.4",
"style-loader": "^4.0.0",
"unplugin-auto-import": "^0.19.0",
"vite": "^6.0.3",
"vite-plugin-cdn2": "^1.1.0",
"vite-plugin-compression2": "^1.3.3",
"webpack": "^5.97.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.2.0"
},
"browserslist": [
"last 15 versions",
"> 0.00001%",
"maintained node versions",
"not dead"
],
"jest": {
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/tools/assetsTransformer.js",
"\\.(css)$": "<rootDir>/tools/assetsTransformer.js"
}
},
"overrides": {
"@pmmmwh/react-refresh-webpack-plugin": {
"webpack-dev-server": "^5.2.0"
}
},
"keywords": [
"react",
"reactjs",
"react-router",
"hot",
"reload",
"hmr",
"webpack",
"redux",
"boilerplate",
"starter",
"react-template",
"react-version18"
],
"repository": {
"type": "git",
"url": "https://github.com/whevether/react-template.git"
}
}