Skip to content

Commit 76ea7e6

Browse files
committed
feat: ✨ 更新依赖
- 修改prettier 配置支持tailwindcss 插件
1 parent e162ee5 commit 76ea7e6

File tree

8 files changed

+3601
-2789
lines changed

8 files changed

+3601
-2789
lines changed

build/vite/plugins/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
import tailwindcss from '@tailwindcss/vite';
12
import react from '@vitejs/plugin-react';
2-
// import react from '@vitejs/plugin-react-swc';
33
import type { ConfigEnv, PluginOption } from 'vite';
4+
45
import { configMockPlugin } from './mock';
56

67
// svg配置
@@ -22,5 +23,7 @@ export function createVitePlugins(_isBuild = false, _configEnv: ConfigEnv) {
2223

2324
vitePlugins.push(configMockPlugin());
2425

26+
vitePlugins.push(tailwindcss());
27+
2528
return vitePlugins;
2629
}

package.json

Lines changed: 44 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -26,63 +26,68 @@
2626
},
2727
"dependencies": {
2828
"@ant-design/charts": "^1.4.3",
29-
"@ant-design/colors": "^7.1.0",
30-
"@ant-design/icons": "^5.5.2",
29+
"@ant-design/colors": "^7.2.1",
30+
"@ant-design/icons": "^6.0.0",
3131
"@emotion/react": "^11.14.0",
32-
"@emotion/styled": "^11.14.0",
33-
"@reduxjs/toolkit": "^2.5.0",
34-
"ahooks": "^3.8.4",
35-
"antd": "^5.22.5",
36-
"axios": "^1.7.9",
32+
"@emotion/styled": "^11.14.1",
33+
"@reduxjs/toolkit": "^2.8.2",
34+
"@tailwindcss/vite": "^4.1.11",
35+
"ahooks": "^3.9.0",
36+
"antd": "^5.26.5",
37+
"axios": "^1.10.0",
3738
"classnames": "^2.5.1",
3839
"dayjs": "^1.11.13",
39-
"keepalive-for-react": "^3.0.7",
40+
"keepalive-for-react": "^4.0.2",
4041
"localforage": "^1.10.0",
4142
"lodash": "^4.17.21",
4243
"lodash-es": "^4.17.21",
43-
"match-sorter": "^8.0.0",
44-
"react": "^19.0.0",
45-
"react-dom": "^19.0.0",
46-
"react-intl": "^7.0.4",
44+
"match-sorter": "^8.0.3",
45+
"react": "^19.1.0",
46+
"react-dom": "^19.1.0",
47+
"react-intl": "^7.1.11",
4748
"react-redux": "^9.2.0",
48-
"react-router": "^7.1.0",
49-
"react-router-dom": "^7.1.0",
49+
"react-router": "^7.7.0",
50+
"react-router-dom": "^7.7.0",
5051
"redux-persist": "^6.0.0",
5152
"sort-by": "^1.2.0"
5253
},
5354
"devDependencies": {
5455
"@emotion/babel-plugin": "^11.13.5",
5556
"@emotion/eslint-plugin": "^11.12.0",
56-
"@eslint-react/eslint-plugin": "^1.22.0",
57-
"@jsxiaosi/commitlint-config": "^1.0.9",
58-
"@jsxiaosi/eslint-config": "^1.0.9",
59-
"@jsxiaosi/eslint-config-prettier": "^1.0.9",
57+
"@eslint-react/eslint-plugin": "^1.52.3",
58+
"@jsxiaosi/commitlint-config": "^1.0.11",
59+
"@jsxiaosi/eslint-config": "^1.0.11",
60+
"@jsxiaosi/eslint-config-prettier": "^1.0.11",
61+
"@tailwindcss/postcss": "^4.1.11",
6062
"@types/crypto-js": "^4.2.2",
6163
"@types/lodash-es": "^4.17.12",
62-
"@types/react": "^19.0.2",
63-
"@types/react-dom": "^19.0.2",
64-
"@vitejs/plugin-react": "^4.3.4",
65-
"@vitejs/plugin-react-swc": "^3.7.2",
66-
"autoprefixer": "^10.4.20",
67-
"commitlint": "^19.6.1",
64+
"@types/react": "^19.1.8",
65+
"@types/react-dom": "^19.1.6",
66+
"@vitejs/plugin-react": "^4.6.0",
67+
"@vitejs/plugin-react-swc": "^3.10.2",
68+
"autoprefixer": "^10.4.21",
69+
"commitlint": "^19.8.1",
6870
"conventional-changelog-cli": "^5.0.0",
6971
"crypto-js": "^4.2.0",
70-
"czg": "^1.11.0",
71-
"eslint": "^9.17.0",
72-
"eslint-plugin-prettier": "^5.2.1",
73-
"eslint-plugin-react": "^7.37.3",
74-
"eslint-plugin-react-hooks": "^5.1.0",
75-
"eslint-plugin-react-refresh": "^0.4.16",
72+
"czg": "^1.12.0",
73+
"eslint": "^9.31.0",
74+
"eslint-plugin-prettier": "^5.5.1",
75+
"eslint-plugin-react": "^7.37.5",
76+
"eslint-plugin-react-hooks": "^5.2.0",
77+
"eslint-plugin-react-refresh": "^0.4.20",
7678
"husky": "^9.1.7",
77-
"less": "^4.2.1",
78-
"lint-staged": "^15.2.11",
79-
"postcss": "^8.4.49",
80-
"prettier": "^3.4.2",
81-
"tailwindcss": "^3.4.17",
82-
"typescript": "^5.7.2",
83-
"vite": "^6.0.5",
84-
"vite-plugin-fake-server": "^2.1.4",
85-
"vite-plugin-pwa": "^0.21.1",
79+
"install": "^0.13.0",
80+
"less": "^4.4.0",
81+
"lint-staged": "^16.1.2",
82+
"npm": "^11.4.2",
83+
"postcss": "^8.5.6",
84+
"prettier": "^3.6.2",
85+
"prettier-plugin-tailwindcss": "^0.6.14",
86+
"tailwindcss": "^4.1.11",
87+
"typescript": "^5.8.3",
88+
"vite": "^7.0.5",
89+
"vite-plugin-fake-server": "^2.2.0",
90+
"vite-plugin-pwa": "^1.0.1",
8691
"vite-plugin-svg-icons": "^2.0.1"
8792
},
8893
"pnpm": {

0 commit comments

Comments
 (0)