Skip to content

Commit c28dcb1

Browse files
committed
chore: upgrade deps
1 parent 0e8c279 commit c28dcb1

File tree

11 files changed

+2520
-1973
lines changed

11 files changed

+2520
-1973
lines changed

.github/workflows/playwright.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Playwright Tests
22

33
on:
44
push:
5-
branches: [ main, master ]
5+
branches: [main, master]
66
pull_request:
7-
branches: [ main, master ]
7+
branches: [main, master]
88

99
jobs:
1010
test:
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/setup-node@v4
1717
with:
1818
node-version: lts/*
19-
19+
2020
- uses: pnpm/action-setup@v2
2121
name: Install pnpm
2222
with:

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ Air Conditioner
1313
</p>
1414

1515
<p align="center">
16-
云空调,便携小空调,为你的夏日带去清凉!
16+
17+
[云空调](https://ac.yunyoujun.cn),便携小空调,为你的夏日带去清凉!
18+
1719
</p>
1820
<br>
1921

bump.config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { defineConfig } from 'bumpp'
2+
3+
const packages = [
4+
'react',
5+
'vue',
6+
// 'widget',
7+
]
8+
9+
export default defineConfig({
10+
all: true,
11+
files: [
12+
'package.json',
13+
...packages.map(name => `packages/${name}/package.json`),
14+
],
15+
})

package.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "module",
44
"version": "0.1.3",
55
"private": true,
6-
"packageManager": "pnpm@9.14.4",
6+
"packageManager": "pnpm@9.15.2",
77
"description": "云空调,便携小空调",
88
"author": {
99
"url": "https://www.yunyoujun.cn",
@@ -17,11 +17,13 @@
1717
},
1818
"scripts": {
1919
"build": "pnpm -r run build",
20+
"dev": "pnpm run react:dev",
2021
"react:dev": "pnpm -C packages/react run dev",
2122
"react:build": "pnpm -C packages/react run build",
2223
"vue:dev": "pnpm -C packages/vue run dev",
2324
"vue:build": "pnpm -C packages/vue run build",
2425
"lint": "eslint .",
26+
"release": "bumpp",
2527
"typecheck": "tsc --noEmit"
2628
},
2729
"browserslist": {
@@ -37,12 +39,13 @@
3739
]
3840
},
3941
"devDependencies": {
40-
"@antfu/eslint-config": "^3.11.2",
41-
"@iconify-json/ic": "^1.2.1",
42-
"@iconify-json/mdi": "^1.2.1",
43-
"@playwright/test": "^1.49.0",
44-
"@types/node": "^22.10.1",
45-
"eslint": "^9.16.0",
46-
"typescript": "^5.6.3"
42+
"@antfu/eslint-config": "catalog:",
43+
"@iconify-json/ic": "catalog:",
44+
"@iconify-json/mdi": "catalog:",
45+
"@playwright/test": "catalog:",
46+
"@types/node": "catalog:",
47+
"bumpp": "catalog:",
48+
"eslint": "catalog:",
49+
"typescript": "catalog:"
4750
}
4851
}

packages/react/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# @air-conditioner/react
2+
3+
原始 React 版本

packages/react/package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "module",
44
"version": "0.1.3",
55
"private": true,
6-
"packageManager": "pnpm@9.14.4",
6+
"packageManager": "pnpm@9.15.2",
77
"description": "云空调,便携小空调",
88
"author": {
99
"url": "https://www.yunyoujun.cn",
@@ -36,30 +36,30 @@
3636
]
3737
},
3838
"dependencies": {
39-
"react": "^18.3.1",
40-
"react-dom": "^18.3.1",
41-
"react-ga": "^3.3.1",
42-
"react-gtm-module": "2.0.11",
43-
"react-router-dom": "^6.28.0",
44-
"sass": "^1.82.0",
45-
"web-vitals": "^4.2.4"
39+
"react": "catalog:",
40+
"react-dom": "catalog:",
41+
"react-ga": "catalog:",
42+
"react-gtm-module": "catalog:",
43+
"react-router-dom": "catalog:",
44+
"sass": "catalog:",
45+
"web-vitals": "catalog:"
4646
},
4747
"devDependencies": {
48-
"@emotion/react": "^11.13.5",
49-
"@emotion/styled": "^11.13.5",
50-
"@iconify-json/ic": "^1.2.1",
51-
"@iconify-json/mdi": "^1.2.1",
52-
"@mui/material": "^5.16.9",
53-
"@types/react": "^18.3.14",
54-
"@types/react-dom": "^18.3.2",
55-
"@types/react-gtm-module": "2.0.3",
56-
"@types/react-router-dom": "^5.3.3",
57-
"@vitejs/plugin-react": "^4.3.4",
58-
"react-transition-group": "^4.4.5",
59-
"unocss": "^0.65.1",
60-
"usehooks-ts": "^3.1.0",
61-
"vite": "^6.0.3",
62-
"vite-plugin-pages": "^0.32.4",
63-
"vite-plugin-pwa": "^0.21.1"
48+
"@emotion/react": "catalog:",
49+
"@emotion/styled": "catalog:",
50+
"@iconify-json/ic": "catalog:",
51+
"@iconify-json/mdi": "catalog:",
52+
"@mui/material": "catalog:",
53+
"@types/react": "catalog:",
54+
"@types/react-dom": "catalog:",
55+
"@types/react-gtm-module": "catalog:",
56+
"@types/react-router-dom": "catalog:",
57+
"@vitejs/plugin-react": "catalog:",
58+
"react-transition-group": "catalog:",
59+
"unocss": "catalog:",
60+
"usehooks-ts": "catalog:",
61+
"vite": "catalog:",
62+
"vite-plugin-pages": "catalog:",
63+
"vite-plugin-pwa": "catalog:"
6464
}
6565
}

packages/vue/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# @air-conditioner/vue
2+
3+
Vue 重构版本

playwright.config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { defineConfig, devices } from '@playwright/test';
1+
import process from 'node:process'
2+
import { defineConfig, devices } from '@playwright/test'
23

34
/**
45
* Read environment variables from file.
@@ -26,7 +27,7 @@ export default defineConfig({
2627
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2728
use: {
2829
/* Base URL to use in actions like `await page.goto('/')`. */
29-
// baseURL: 'http://127.0.0.1:3000',
30+
baseURL: 'http://127.0.0.1:3000',
3031

3132
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
3233
trace: 'on-first-retry',
@@ -76,4 +77,4 @@ export default defineConfig({
7677
// url: 'http://127.0.0.1:3000',
7778
// reuseExistingServer: !process.env.CI,
7879
// },
79-
});
80+
})

0 commit comments

Comments
 (0)