Skip to content

Commit b7a450f

Browse files
committed
chore: wip
1 parent fa80595 commit b7a450f

File tree

10 files changed

+24
-18
lines changed

10 files changed

+24
-18
lines changed

bun.lockb

7.53 KB
Binary file not shown.

storage/framework/.biomelintrc-auto-import.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,4 +349,4 @@
349349
"whenever"
350350
]
351351
}
352-
}
352+
}

storage/framework/core/components/stepper/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"@types/clean-css": "^4.2.11",
4949
"@vue/tsconfig": "^0.5.1",
5050
"clean-css": "^5.3.3",
51-
"unocss": "0.62.4",
51+
"unocss": "0.61.0",
5252
"unplugin-icons": "^0.19.3"
5353
}
5454
}

storage/framework/core/types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"meilisearch": "^0.42.0",
5353
"neverthrow": "^8.0.0",
5454
"ora": "^8.1.0",
55-
"unocss": "0.62.4",
55+
"unocss": "0.61.0",
5656
"unplugin-auto-import": "^0.18.3",
5757
"unplugin-vue-components": "^0.27.4",
5858
"vite": "^5.4.7",

storage/framework/core/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"@unhead/vue": "^1.11.6",
5757
"pinia": "^2.2.2",
5858
"unhead": "^1.11.6",
59-
"unocss": "0.62.4",
59+
"unocss": "0.61.0",
6060
"unocss-preset-primitives": "0.0.2-beta.1",
6161
"vite-plugin-vue-layouts": "^0.11.0",
6262
"vue": "^3.5.8",

storage/framework/core/vite-config/src/views.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,20 @@ import {
1212
markdown,
1313
pwa,
1414
router,
15+
stacks,
16+
uiEngine,
1517
} from '@stacksjs/vite-plugin'
16-
import Vue from '@vitejs/plugin-vue'
17-
import { defineConfig } from 'vite'
18+
import { type UserConfig, defineConfig } from 'vite'
1819
import generateSitemap from 'vite-ssg-sitemap'
1920

2021
// import { fonts } from './plugin/fonts'
2122

2223
// const isMaintenanceMode = config.app.maintenanceMode
2324
// const maintenancePath = isMaintenanceMode ? '' : './maintenance'
2425

25-
export default defineConfig({
26+
console.log('views.ts')
27+
28+
const config: UserConfig = defineConfig({
2629
build: {
2730
rollupOptions: {
2831
external: ['fsevents', 'tinyexec', '@iconify/utils', '@antfu/install-pkg', 'local-pkg', 'mlly', 'fs'],
@@ -49,9 +52,7 @@ export default defineConfig({
4952
},
5053

5154
plugins: [
52-
Vue({
53-
include: /\.(stx|vue|md)($|\?)/,
54-
}),
55+
uiEngine(),
5556

5657
router({
5758
type: 'views',
@@ -69,9 +70,8 @@ export default defineConfig({
6970
pwa(),
7071
devtools(),
7172
i18n(),
72-
73-
// https://github.com/feat-agency/vite-plugin-webfont-dl
7473
fonts(),
74+
stacks(),
7575
],
7676

7777
// https://github.com/antfu/vite-ssg
@@ -98,3 +98,5 @@ export default defineConfig({
9898
noExternal: ['workbox-window', /vue-i18n/],
9999
},
100100
})
101+
102+
export default config
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
import type { Plugin } from 'vite'
12
import WebfontDownload from 'vite-plugin-webfont-dl'
23

3-
export function fonts() {
4-
// https://github.com/feat-agency/vite-plugin-webfont-dl
4+
// https://github.com/feat-agency/vite-plugin-webfont-dl
5+
export function fonts(): Plugin {
56
return WebfontDownload()
67
}

storage/framework/core/vite-plugin/src/i18n.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import VueI18n from '@intlify/unplugin-vue-i18n/vite'
22
import { path as p } from '@stacksjs/path'
3+
import type { Plugin } from 'vite'
34

4-
export function i18n() {
5+
export function i18n(): Plugin {
56
return VueI18n({
67
runtimeOnly: true,
78
compositionOnly: true,

storage/framework/core/vite-plugin/src/stacks.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,12 @@ export function stacks(options?: StacksPluginOptions): Plugin {
5858
inspect: await localUrl({ type: 'inspect', https: true }),
5959
}
6060

61-
const stacksVersion = `alpha-${version}`
61+
console.log('urls', urls)
62+
const stacksVersion = `alpha-v${version}`
6263
const withLocalhost = options?.withLocalhost
6364

6465
console.log(` ${c.blue(c.bold('STACKS'))} ${c.blue(stacksVersion)}`)
66+
console.log('')
6567

6668
for (const [option, url] of Object.entries(urls)) {
6769
if (options?.[option as keyof StacksPluginOptions])

storage/framework/views/web/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@stacksjs/config": "workspace:*",
1717
"@stacksjs/server": "workspace:*",
1818
"@unhead/vue": "^1.11.6",
19-
"@unocss/reset": "0.62.4",
19+
"@unocss/reset": "0.61.0",
2020
"@vueuse/core": "^11.1.0",
2121
"@vueuse/head": "^2.0.0",
2222
"nprogress": "^0.2.0",
@@ -38,7 +38,7 @@
3838
"rollup": "^4.22.4",
3939
"shikiji": "^0.10.2",
4040
"taze": "^0.16.9",
41-
"unocss": "0.62.4",
41+
"unocss": "0.61.0",
4242
"unplugin-auto-import": "^0.18.3",
4343
"unplugin-vue-components": "^0.27.4",
4444
"unplugin-vue-markdown": "^0.26.2",

0 commit comments

Comments
 (0)