Skip to content

Commit efd605f

Browse files
build: deploy built github-io to live folder
1 parent eabf7d3 commit efd605f

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ git-hooks.config.json
55

66
/docs-html
77
.dist.preview
8+
.dist.github-io
89
.vscode/settings.json
910

1011
# Old gitignore, maybe cleanup when migrated
@@ -29,4 +30,4 @@ logs
2930
*.patch
3031
!/patches/**/*.patch
3132

32-
.DS_Store
33+
.DS_Store

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"tsc": "tsc && vue-tsc -p src && vue-tsc -p examples/iceberg",
5858
"tsc:ci": "tsc && vue-tsc -p src && vue-tsc -p examples/iceberg",
5959
"docs:ci": "npm run docs:showcase:ci && npm run docs:docs:ci && npm run docs:api:ci && npm run docs:api:core:ci && npm run docs:api:plugin:ci",
60-
"docs:showcase:ci": "mkdir -p docs-html && cp -r examples/github-io/* docs-html/",
60+
"docs:showcase:ci": "mkdir -p docs-html && npm run build:ci && vite build -c vite.config.github-io.ts && cp -r .dist.github-io/* docs-html/",
6161
"docs:docs": "mkdocs serve",
6262
"docs:docs:ci": "mkdocs build",
6363
"docs:api": "node scripts/typedoc-install-vue-tsc.ts && typedoc --watch",

vite.config.github-io.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import vue from '@vitejs/plugin-vue'
2+
import { resolve } from 'node:path'
3+
import { defineConfig } from 'vite'
4+
import commonJs from 'vite-plugin-commonjs'
5+
import kernExtraIcons from 'vite-plugin-kern-extra-icons'
6+
7+
import enrichedConsole from './vitePlugins/enrichedConsole.js'
8+
9+
export default defineConfig({
10+
root: resolve(__dirname, 'examples', 'github-io'),
11+
base: './',
12+
plugins: [
13+
// @ts-expect-error | commonJs dts is broken
14+
commonJs(),
15+
vue({
16+
template: {
17+
compilerOptions: {
18+
isCustomElement: (tag) => tag.includes('-'),
19+
},
20+
},
21+
}),
22+
kernExtraIcons({
23+
cssLayer: 'kern-ux-icons',
24+
ignoreFilename: (filename) => !filename.includes('/examples/github-io/'),
25+
}),
26+
enrichedConsole(),
27+
],
28+
build: {
29+
outDir: '../../.dist.github-io',
30+
chunkSizeWarningLimit: 1536,
31+
},
32+
preview: {
33+
port: 1236,
34+
},
35+
})

0 commit comments

Comments
 (0)