Skip to content

Commit 82bdcb6

Browse files
committed
feat: support vite-ssg for generate multi htmls, close #77
1 parent 5daec28 commit 82bdcb6

File tree

22 files changed

+3460
-779
lines changed

22 files changed

+3460
-779
lines changed

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
uses: actions/upload-pages-artifact@v1
4242
with:
4343
path: ./dist
44-
44+
4545
deploy:
4646
needs: build
4747
runs-on: ubuntu-latest

.vscode/extensions.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
{
32
"recommendations": ["Vue.volar"]
43
}

.vscode/settings.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
// Disable the default formatter, use eslint instead
3+
"prettier.enable": false,
4+
"editor.formatOnSave": false,
5+
6+
// Auto fix
7+
"editor.codeActionsOnSave": {
8+
"source.fixAll.eslint": "explicit",
9+
"source.organizeImports": "never"
10+
},
11+
12+
// Enable eslint for all supported languages
13+
"eslint.validate": [
14+
"javascript",
15+
"javascriptreact",
16+
"typescript",
17+
"typescriptreact",
18+
"vue",
19+
"html",
20+
"markdown",
21+
"json",
22+
"json5",
23+
"jsonc",
24+
"yaml",
25+
"toml",
26+
"xml",
27+
"gql",
28+
"graphql",
29+
"astro",
30+
"css",
31+
"less",
32+
"scss",
33+
"pcss",
34+
"postcss"
35+
]
36+
}

eslint.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import antfu from '@antfu/eslint-config'
2+
3+
export default antfu({
4+
formatters: true,
5+
unocss: true,
6+
vue: true,
7+
})

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />

package.json

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"name": "element-plus-vite-starter",
3-
"private": true,
4-
"version": "0.1.0",
53
"type": "module",
6-
"packageManager": "[email protected]",
4+
"version": "0.1.0",
5+
"private": true,
6+
"packageManager": "[email protected]",
7+
"license": "MIT",
78
"homepage": "https://vite-starter.element-plus.org",
89
"repository": {
910
"url": "https://github.com/element-plus/element-plus-vite-starter"
@@ -12,29 +13,33 @@
1213
"dev": "vite",
1314
"build": "vite build",
1415
"generate": "vite-ssg build",
16+
"lint": "eslint .",
1517
"preview": "vite preview",
1618
"typecheck": "vue-tsc --noEmit"
1719
},
1820
"dependencies": {
1921
"@element-plus/icons-vue": "^2.3.1",
20-
"@vueuse/core": "^11.3.0",
21-
"element-plus": "^2.8.8",
22+
"@vueuse/core": "^12.0.0",
23+
"element-plus": "^2.9.0",
2224
"vue": "^3.5.13",
23-
"vue-router": "^4.4.5"
25+
"vue-router": "^4.5.0"
2426
},
2527
"devDependencies": {
28+
"@antfu/eslint-config": "^3.11.2",
2629
"@iconify-json/ep": "^1.2.1",
2730
"@iconify-json/ri": "^1.2.3",
28-
"@types/node": "^20.17.6",
29-
"@vitejs/plugin-vue": "^5.2.0",
30-
"sass": "^1.81.0",
31+
"@types/node": "^20.17.10",
32+
"@unocss/eslint-plugin": "^0.65.1",
33+
"@vitejs/plugin-vue": "^5.2.1",
34+
"eslint": "^9.16.0",
35+
"eslint-plugin-format": "^0.1.3",
36+
"sass": "^1.82.0",
3137
"typescript": "^5.6.3",
32-
"unocss": "^0.64.1",
33-
"unplugin-vue-components": "^0.27.4",
34-
"unplugin-vue-router": "^0.10.8",
35-
"vite": "^5.4.11",
36-
"vite-ssg": "^0.24.1",
38+
"unocss": "^0.65.1",
39+
"unplugin-vue-components": "^0.27.5",
40+
"unplugin-vue-router": "^0.10.9",
41+
"vite": "^6.0.3",
42+
"vite-ssg": "^0.24.2",
3743
"vue-tsc": "^2.1.10"
38-
},
39-
"license": "MIT"
44+
}
4045
}

0 commit comments

Comments
 (0)