Skip to content

Commit 1d0d038

Browse files
committed
feat: requires vue 3.2
1 parent 1d99506 commit 1d0d038

File tree

11 files changed

+765
-500
lines changed

11 files changed

+765
-500
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Server-side generation for Vue 3 on Vite.
1111
> **This library requires Node.js version >= 14**
1212
1313
<pre>
14-
<b>npm i -D vite-ssg</b> <em>@vue/server-renderer @vue/compiler-sfc vue-router@next @vueuse/head</em>
14+
<b>npm i -D vite-ssg</b> <em>vue-router@next @vueuse/head</em>
1515
</pre>
1616

1717
```diff

examples/multiple-pages-pwa/package.json

+6-7
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,17 @@
66
"serve": "vite preview"
77
},
88
"dependencies": {
9-
"vue": "^3.2.20"
9+
"vue": "^3.2.22"
1010
},
1111
"devDependencies": {
12-
"@vitejs/plugin-vue": "^1.9.3",
13-
"@vue/compiler-sfc": "^3.2.20",
12+
"@vitejs/plugin-vue": "^1.9.4",
1413
"cross-env": "^7.0.3",
1514
"typescript": "^4.4.4",
16-
"vite": "^2.6.10",
15+
"vite": "^2.6.14",
1716
"vite-plugin-components": "^0.13.3",
18-
"vite-plugin-md": "^0.11.2",
19-
"vite-plugin-pages": "^0.18.1",
20-
"vite-plugin-pwa": "^0.11.3",
17+
"vite-plugin-md": "^0.11.4",
18+
"vite-plugin-pages": "^0.18.2",
19+
"vite-plugin-pwa": "^0.11.5",
2120
"vite-ssg": "workspace:*",
2221
"vue-router": "^4.0.12"
2322
}

examples/multiple-pages-with-store/package.json

+6-7
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,18 @@
66
"serve": "vite preview"
77
},
88
"dependencies": {
9-
"pinia": "2.0.0-rc.14",
10-
"vue": "^3.2.20"
9+
"pinia": "2.0.3",
10+
"vue": "^3.2.22"
1111
},
1212
"devDependencies": {
1313
"@nuxt/devalue": "^2.0.0",
14-
"@vitejs/plugin-vue": "^1.9.3",
15-
"@vue/compiler-sfc": "^3.2.20",
14+
"@vitejs/plugin-vue": "^1.9.4",
1615
"cross-env": "^7.0.3",
1716
"typescript": "^4.4.4",
18-
"vite": "^2.6.10",
17+
"vite": "^2.6.14",
1918
"vite-plugin-components": "^0.13.3",
20-
"vite-plugin-md": "^0.11.2",
21-
"vite-plugin-pages": "^0.18.1",
19+
"vite-plugin-md": "^0.11.4",
20+
"vite-plugin-pages": "^0.18.2",
2221
"vite-ssg": "workspace:*",
2322
"vue-router": "^4.0.12"
2423
}

examples/multiple-pages/package.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@
66
"serve": "vite preview"
77
},
88
"dependencies": {
9-
"vue": "^3.2.20"
9+
"vue": "^3.2.22"
1010
},
1111
"devDependencies": {
12-
"@vitejs/plugin-vue": "^1.9.3",
13-
"@vue/compiler-sfc": "^3.2.20",
12+
"@vitejs/plugin-vue": "^1.9.4",
1413
"cross-env": "^7.0.3",
1514
"typescript": "^4.4.4",
16-
"vite": "^2.6.10",
15+
"vite": "^2.6.14",
1716
"vite-plugin-components": "^0.13.3",
18-
"vite-plugin-md": "^0.11.2",
19-
"vite-plugin-pages": "^0.18.1",
17+
"vite-plugin-md": "^0.11.4",
18+
"vite-plugin-pages": "^0.18.2",
2019
"vite-ssg": "workspace:*",
2120
"vue-router": "^4.0.12"
2221
}

examples/single-page/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
"serve": "vite preview"
77
},
88
"dependencies": {
9-
"pinia": "^2.0.0-rc.14",
10-
"vue": "^3.2.20"
9+
"pinia": "^2.0.3",
10+
"vue": "^3.2.22"
1111
},
1212
"devDependencies": {
13-
"@vitejs/plugin-vue": "^1.9.3",
13+
"@vitejs/plugin-vue": "^1.9.4",
1414
"cross-env": "^7.0.3",
1515
"typescript": "^4.4.4",
16-
"vite": "^2.6.10",
16+
"vite": "^2.6.14",
1717
"vite-ssg": "workspace:*"
1818
}
1919
}

package.json

+13-18
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"ssr"
4444
],
4545
"scripts": {
46-
"dev": "npm run build:module -- --watch src",
46+
"dev": "tsup -- --watch src",
4747
"copy-readme-files": "esno scripts/copy-readme-files.ts",
4848
"copy-single-page-dts": "esno scripts/copy-single-page-dts.ts",
4949
"example:dev": "npm run copy-readme-files && npm -C examples/multiple-pages run dev",
@@ -55,8 +55,7 @@
5555
"example:single:dev": "npm -C examples/single-page run dev",
5656
"example:single:build": "npm -C examples/single-page run build",
5757
"example:single:serve": "npm -C examples/single-page run serve",
58-
"build:module": "tsup src/index.ts src/client/single-page.ts src/node/cli.ts --dts --format cjs,esm --splitting",
59-
"build": "rimraf dist && npm run build:module && npm run copy-single-page-dts",
58+
"build": "tsup && npm run copy-single-page-dts",
6059
"prepublishOnly": "npm run build",
6160
"release": "npx bumpp --push --tag --commit"
6261
},
@@ -69,12 +68,10 @@
6968
"yargs": "^17.2.1"
7069
},
7170
"peerDependencies": {
72-
"@vue/compiler-sfc": "^3.0.4",
73-
"@vue/server-renderer": "^3.0.4",
7471
"@vueuse/head": "^0.5.1",
7572
"critters": "^0.0.10",
7673
"vite": "^2.0.0",
77-
"vue": "^3.0.4",
74+
"vue": "^3.2.10",
7875
"vue-router": "^4.0.1"
7976
},
8077
"peerDependenciesMeta": {
@@ -86,22 +83,20 @@
8683
"@antfu/eslint-config": "^0.10.0",
8784
"@types/fs-extra": "^9.0.13",
8885
"@types/jsdom": "^16.2.13",
89-
"@types/yargs": "^17.0.4",
90-
"@typescript-eslint/eslint-plugin": "^5.1.0",
91-
"@vue/compiler-sfc": "^3.2.20",
92-
"@vue/server-renderer": "^3.2.20",
86+
"@types/yargs": "^17.0.5",
87+
"@typescript-eslint/eslint-plugin": "^5.4.0",
9388
"@vueuse/head": "^0.6.0",
9489
"bumpp": "^7.1.1",
95-
"critters": "^0.0.12",
96-
"eslint": "^8.0.1",
97-
"esno": "^0.10.1",
98-
"rollup": "^2.58.0",
90+
"critters": "^0.0.14",
91+
"eslint": "^8.2.0",
92+
"esno": "^0.12.0",
93+
"rollup": "^2.60.0",
9994
"standard-version": "^9.3.2",
100-
"tsup": "^5.4.2",
95+
"tsup": "^5.7.1",
10196
"typescript": "^4.4.4",
102-
"vite": "^2.6.10",
103-
"vite-plugin-pwa": "^0.11.3",
104-
"vue": "^3.2.20",
97+
"vite": "^2.6.14",
98+
"vite-plugin-pwa": "^0.11.5",
99+
"vue": "^3.2.22",
105100
"vue-router": "^4.0.12"
106101
}
107102
}

0 commit comments

Comments
 (0)