Skip to content

Commit 778593b

Browse files
authored
feat: create router in cb (#4)
1 parent 425736e commit 778593b

34 files changed

+2714
-1839
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
12+
- uses: actions/setup-node@v4
1313
with:
1414
node-version: 18
15-
- uses: pnpm/action-setup@v2
15+
- uses: pnpm/action-setup@v3
1616
with:
17-
version: 8
17+
version: 9
1818
- run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
1919
env:
2020
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,31 +35,31 @@
3535
"vite"
3636
],
3737
"dependencies": {
38-
"@babel/generator": "^7.23.3",
39-
"@babel/parser": "^7.23.3",
40-
"@babel/traverse": "^7.23.3",
41-
"@babel/types": "^7.23.3",
38+
"@babel/generator": "^7.24.4",
39+
"@babel/parser": "^7.24.4",
40+
"@babel/traverse": "^7.24.1",
41+
"@babel/types": "^7.24.0",
4242
"@types/express": "^4.17.21",
4343
"cheerio": "1.0.0-rc.12",
4444
"cookie": "^0.6.0",
4545
"cookie-parser": "^1.4.6"
4646
},
4747
"devDependencies": {
48-
"@types/node": "^20.10.0",
49-
"@unhead/vue": "^1.8.9",
50-
"devalue": "^4.3.2",
48+
"@types/node": "^20.12.7",
49+
"@unhead/vue": "^1.9.7",
50+
"devalue": "^5.0.0",
5151
"typescript": "~5.3.0",
5252
"unbuild": "^2.0.0",
53-
"vite": "^5.0.10",
54-
"vue": "^3.4.0",
55-
"vue-router": "^4.2.5"
53+
"vite": "^5.2.10",
54+
"vue": "^3.4.25",
55+
"vue-router": "^4.3.2"
5656
},
5757
"peerDependencies": {
58-
"@unhead/vue": "^1.8.9",
58+
"@unhead/vue": "^1.9.4",
5959
"devalue": "^4.3.2",
60-
"vite": "^5.0.10",
61-
"vue": "^3.4.0",
62-
"vue-router": "^4.2.5"
60+
"vite": "^5.2.8",
61+
"vue": "^3.4.21",
62+
"vue-router": "^4.3.0"
6363
},
6464
"peerDependenciesMeta": {
6565
"devalue": {
File renamed without changes.
File renamed without changes.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"name": "playground",
3+
"name": "pinia-example",
44
"version": "0.0.0",
55
"type": "module",
66
"scripts": {
@@ -10,23 +10,23 @@
1010
"build:server": "vite build --ssr src/main.ts --outDir dist/server"
1111
},
1212
"dependencies": {
13-
"@unhead/vue": "^1.8.9",
13+
"@unhead/vue": "^1.9.7",
1414
"compression": "^1.7.4",
1515
"cookie-parser": "^1.4.6",
16-
"devalue": "^4.3.2",
16+
"devalue": "^5.0.0",
1717
"express": "^4.18.2",
1818
"pinia": "^2.1.7",
1919
"serve-static": "^1.15.0",
20-
"vue": "^3.4.0",
21-
"vue-router": "^4.2.5"
20+
"vue": "^3.4.25",
21+
"vue-router": "^4.3.2"
2222
},
2323
"devDependencies": {
2424
"@tsconfig/node20": "^20.1.0",
2525
"@types/node": "^20.10.0",
2626
"@vitejs/plugin-vue": "^5.0.0",
2727
"@vue/tsconfig": "^0.5.0",
2828
"typescript": "~5.3.0",
29-
"vite": "^5.0.10",
29+
"vite": "^5.2.10",
3030
"vite-plugin-vue-ssr": "workspace:*"
3131
}
3232
}
File renamed without changes.
File renamed without changes.

example/src/App.vue renamed to playground/pinia-example/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { useHead } from '@unhead/vue'
33
44
useHead({
5-
title: 'Example app, using vite-plugin-vue-ssr'
5+
title: 'Example app, using vite-plugin-vue-ssr',
66
})
77
</script>
88

File renamed without changes.

example/src/main.ts renamed to playground/pinia-example/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const routes = [
1212
},
1313
]
1414

15-
export default vueSSR(App, { routes }, ({ app, state }) => {
15+
export default vueSSR(App, { routes }, async ({ app, state }) => {
1616
const pinia = createPinia()
1717
app.use(pinia)
1818

0 commit comments

Comments
 (0)