-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpackage.json
More file actions
145 lines (145 loc) · 4.46 KB
/
package.json
File metadata and controls
145 lines (145 loc) · 4.46 KB
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
134
135
136
137
138
139
140
141
142
143
144
145
{
"name": "react-template",
"version": "2.0.0",
"description": "这是一个最新版的react模板,会一直维护更新,因为没有类似vue-cli那样的工具所以自己建了个",
"engines": {
"node": ">=20",
"npm": ">=10"
},
"scripts": {
"preinstall": "node tools/nodeVersionCheck.js",
"start-message": "node tools/startMessage.js",
"prestart": "npm-run-all --parallel start-message remove-dist",
"predev": "npm-run-all --parallel start-message remove-dist",
"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",
"start": "npm-run-all --parallel open:src lint test:watch",
"dev": "vite --open --force",
"prebuild": "npm run clean-dist && npm run lint",
"prebuildvite": "npm run clean-dist && npm run lint",
"build:test": "APP_ENV=test node tools/build.js && npm run open:dist",
"build:prod": "APP_ENV=production node tools/build.js && npm run open:dist",
"buildvite": "vite build --mode production --emptyOutDir",
"buildvite:test": "vite build --mode test --emptyOutDir",
"test": "jest",
"test:watch": "jest --watchAll"
},
"author": "keep_wan",
"type": "module",
"license": "MIT",
"dependencies": {
"axios": "^1.13.5",
"classnames": "^2.5.1",
"echarts": "^6.0.0",
"js-cookie": "^3.0.5",
"prop-types": "^15.8.1",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-redux": "^9.2.0",
"react-router-dom": "^7.13.1",
"redux": "^5.0.1",
"redux-thunk": "^3.1.0"
},
"devDependencies": {
"@babel/cli": "^7.28.6",
"@babel/core": "^7.29.0",
"@babel/eslint-parser": "^7.28.6",
"@babel/plugin-transform-arrow-functions": "^7.27.1",
"@babel/plugin-transform-async-generator-functions": "^7.29.0",
"@babel/plugin-transform-async-to-generator": "^7.28.6",
"@babel/plugin-transform-class-properties": "^7.28.6",
"@babel/plugin-transform-json-strings": "^7.28.6",
"@babel/plugin-transform-optional-chaining": "^7.28.6",
"@babel/plugin-transform-react-constant-elements": "^7.27.1",
"@babel/plugin-transform-runtime": "^7.29.0",
"@babel/preset-env": "^7.29.0",
"@babel/preset-react": "^7.28.5",
"@babel/runtime": "^7.28.6",
"@pmmmwh/react-refresh-webpack-plugin": "^0.6.2",
"@vitejs/plugin-react": "^5.1.4",
"autoprefixer": "^10.4.24",
"babel-jest": "^30.2.0",
"babel-loader": "^10.0.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"browser-sync": "^3.0.4",
"chalk": "^5.6.2",
"connect-history-api-fallback": "^2.0.0",
"copy-webpack-plugin": "^13.0.1",
"core-js": "^3.48.0",
"css-loader": "^7.1.4",
"css-minimizer-webpack-plugin": "7.0.4",
"eslint": "^9.39.1",
"eslint-plugin-react": "^7.37.5",
"globals": "^17.3.0",
"html-webpack-plugin": "^5.6.6",
"jest": "^30.2.0",
"jest-cli": "^30.2.0",
"mini-css-extract-plugin": "^2.10.0",
"npm-run-all": "^4.1.5",
"postcss-import": "^16.1.1",
"postcss-loader": "^8.2.1",
"postcss-pxtorem": "^6.1.0",
"react-refresh": "^0.18.0",
"rimraf": "^6.1.3",
"sass": "^1.97.3",
"sass-loader": "^16.0.7",
"style-loader": "^4.0.0",
"unplugin-auto-import": "^21.0.0",
"vite": "^7.3.1",
"vite-plugin-cdn2": "^1.1.0",
"vite-plugin-compression2": "^2.4.0",
"webpack": "^5.105.2",
"webpack-cli": "^6.0.1",
"webpack-dev-server": "^5.2.3"
},
"browserslist": [
"last 15 versions",
"> 0.00001%",
"maintained node versions",
"not dead",
"ie > 11",
"iOS >= 10",
"Android >= 5"
],
"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"
},
"transform": {
"^.+\\.[t|j]sx?$": "babel-jest"
}
},
"overrides": {
"@pmmmwh/react-refresh-webpack-plugin": {
"webpack-dev-server": "^5.2.3"
},
"@babel/cli": {
"glob": "11.0.3"
},
"babel-jest": {
"glob": "11.0.3"
}
},
"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"
}
}