Skip to content

Commit 2a975c1

Browse files
committed
chore: wip
1 parent 621b9d7 commit 2a975c1

File tree

5 files changed

+27
-20
lines changed

5 files changed

+27
-20
lines changed

.stacks/core/router/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@
4747
"prepublishOnly": "bun --bun run build"
4848
},
4949
"peerDependencies": {
50+
"unplugin-vue-router": "^0.6.4",
5051
"vue-router": "^4.2.4"
5152
},
5253
"dependencies": {
54+
"unplugin-vue-router": "^0.6.4",
5355
"vue-router": "^4.2.4"
5456
},
5557
"devDependencies": {

.stacks/core/router/src/middleware.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import fs from 'fs';
2-
import path from 'path';
3-
import { promisify } from 'util';
1+
import fs from 'node:fs';
2+
import path from 'node:path';
3+
import { promisify } from 'node:util';
44
import { MiddlewareType } from '@stacksjs/types';
5-
5+
66
export class Middleware implements MiddlewareType {
77
name: string
88
priority: number

.stacks/core/ui/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@
5959
"@julr/unocss-preset-forms": "^0.0.5",
6060
"@stacksjs/build": "workspace:*",
6161
"@stacksjs/config": "workspace:*",
62+
"@stacksjs/router": "workspace:*",
6263
"@stacksjs/vite-plugin-vue-layouts": "workspace:*",
6364
"@unocss/transformer-compile-class": "^0.55.7",
6465
"pinia": "^2.1.6",
6566
"unhead": "^1.5.1",
6667
"unocss": "^0.55.7",
67-
"unplugin-vue-router": "^0.6.4",
6868
"vue": "^3.3.4",
6969
"vue-tsc": "^1.8.8"
7070
},
@@ -75,12 +75,12 @@
7575
"@julr/unocss-preset-forms": "^0.0.5",
7676
"@stacksjs/build": "workspace:*",
7777
"@stacksjs/config": "workspace:*",
78+
"@stacksjs/router": "workspace:*",
7879
"@stacksjs/vite-plugin-vue-layouts": "workspace:*",
7980
"@unocss/transformer-compile-class": "^0.55.7",
8081
"pinia": "^2.1.6",
8182
"unhead": "^1.5.1",
8283
"unocss": "^0.55.7",
83-
"unplugin-vue-router": "^0.6.4",
8484
"vue": "^3.3.4",
8585
"vue-tsc": "^1.8.8"
8686
},

.stacks/core/vite/src/views.ts

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { alias } from '@stacksjs/alias'
55
import { defineConfig } from './'
66
import generateSitemap from 'vite-ssg-sitemap'
77

8-
export const pagesConfig: ViteConfig = {
8+
export const pagesConfig = {
99
root: p.projectStoragePath('framework/web'),
1010
envDir: p.projectPath(),
1111
envPrefix: 'FRONTEND_',
@@ -14,21 +14,26 @@ export const pagesConfig: ViteConfig = {
1414
alias,
1515
},
1616

17+
server: {
18+
host: 'stacks.test',
19+
port: 3333,
20+
},
21+
1722
plugins: [
1823
// preview(),
1924
uiEngine(),
20-
pages({
21-
routesFolder: [p.resourcesPath('views')],
22-
}),
23-
cssEngine(),
24-
components(),
25-
layouts({
26-
layoutsDirs: p.resourcesPath('layouts'),
27-
}),
28-
// i18n(),
29-
autoImports(),
30-
// pwa(),
31-
inspect(),
25+
// pages({
26+
// routesFolder: [p.resourcesPath('views')],
27+
// }),
28+
// cssEngine(),
29+
// components(),
30+
// layouts({
31+
// layoutsDirs: p.resourcesPath('layouts'),
32+
// }),
33+
// // i18n(),
34+
// autoImports(),
35+
// // pwa(),
36+
// inspect(),
3237
],
3338

3439
// https://github.com/antfu/vite-ssg
@@ -42,7 +47,7 @@ export const pagesConfig: ViteConfig = {
4247
// TODO: workaround until they support native ESM
4348
noExternal: ['workbox-window', /vue-i18n/],
4449
},
45-
}
50+
} satisfies ViteConfig
4651

4752
export default defineConfig(({ command }) => {
4853
if (command === 'serve')

bun.lockb

152 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)