Skip to content

Commit 3ba762e

Browse files
chore: wip
1 parent e0a168e commit 3ba762e

File tree

23 files changed

+174
-43
lines changed

23 files changed

+174
-43
lines changed

.stacks/core/alias/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,5 +215,5 @@ export const alias: Record<string, string> = {
215215
'config/*': p.projectConfigPath('*'),
216216
'components/*': p.componentsPath('*'),
217217
'functions/*': p.functionsPath('*'),
218-
'pages/*': p.pagesPath('*'),
218+
'views/*': p.viewsPath('*'),
219219
}

.stacks/core/path/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ export function packageJsonPath(type: 'vue-components' | 'web-components' | 'fun
248248
return frameworkPath(`${type}/package.json`)
249249
}
250250

251-
export function pagesPath(path?: string) {
252-
return resourcesPath(`pages/${path || ''}`)
251+
export function viewsPath(path?: string) {
252+
return resourcesPath(`views/${path || ''}`)
253253
}
254254

255255
export function pathPath(path?: string) {
@@ -451,7 +451,7 @@ export const path = {
451451
onboardingPath,
452452
notificationsPath,
453453
packageJsonPath,
454-
pagesPath,
454+
viewsPath,
455455
pathPath,
456456
paymentsPath,
457457
projectPath,

.stacks/core/vite/src/desktop.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { defineConfig, loadEnv } from 'vite'
22
import type { ViteConfig } from '@stacksjs/types'
3-
import { frameworkPath, libraryEntryPath, libsPath, projectPath, resourcesPath, storagePath } from '@stacksjs/path'
4-
import type { ViteDevServer as DevServer, BuildOptions as ViteBuildOptions } from 'vite'
3+
import { frameworkPath, projectPath, storagePath } from '@stacksjs/path'
4+
import type { ViteDevServer as DevServer } from 'vite'
55
import { app, library } from '@stacksjs/config'
66
import { alias } from '@stacksjs/alias'
77
import mkcert from 'vite-plugin-mkcert'
88
import c from 'picocolors'
99
import { version } from '../package.json'
10-
import { autoImports, components, cssEngine, inspect, uiEngine } from './stacks'
10+
import { autoImports, cssEngine, inspect, uiEngine } from './stacks'
1111

1212
export const vueComponentsConfig: ViteConfig = {
1313
root: frameworkPath('views/desktop'),
@@ -36,9 +36,6 @@ export const vueComponentsConfig: ViteConfig = {
3636
uiEngine(),
3737
cssEngine(),
3838
autoImports(),
39-
components({
40-
dirs: [resourcesPath('views'), resourcesPath('components')],
41-
}),
4239
inspect(),
4340
mkcert({
4441
hosts: ['localhost', 'stacks.test', 'api.stacks.test', 'admin.stacks.test', 'libs.stacks.test', 'docs.stacks.test'],

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function components(options?: ComponentOptions): Plugin {
2727
include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
2828
dirs: [
2929
p.componentsPath(),
30-
// pagesPath(),
30+
// viewsPath(),
3131
],
3232
dts: p.frameworkPath('types/components.d.ts'),
3333
}
@@ -42,7 +42,7 @@ export function pages(options?: PagesOption): Plugin {
4242
const defaultOptions = {
4343
extensions: ['vue', 'md'],
4444
dirs: [
45-
p.pagesPath(),
45+
p.viewsPath(),
4646
],
4747
}
4848

.stacks/libs/components/vue/src/components.d.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

.stacks/stacks/dashboard/build.config.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

.stacks/stacks/dashboard/index.html

Whitespace-only changes.

.stacks/stacks/dashboard/main.ts

Whitespace-only changes.

.stacks/types/auto-imports.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ declare global {
559559
const p: typeof import('../core/utils/src/p')['p']
560560
const packageJsonPath: typeof import('../core/path/src/index')['packageJsonPath']
561561
const packageManager: typeof import('../core/utils/src/helpers')['packageManager']
562-
const pagesPath: typeof import('../core/path/src/index')['pagesPath']
562+
const viewsPath: typeof import('../core/path/src/index')['viewsPath']
563563
const paramCase: typeof import('../core/strings/src/case')['paramCase']
564564
const parse: typeof import('../core/path/src/index')['parse']
565565
const parseArgs: typeof import('../core/cli/src/parse')['parseArgs']
@@ -1472,7 +1472,7 @@ declare module 'vue' {
14721472
readonly p: UnwrapRef<typeof import('../core/utils/src/p')['p']>
14731473
readonly packageJsonPath: UnwrapRef<typeof import('../core/path/src/index')['packageJsonPath']>
14741474
readonly packageManager: UnwrapRef<typeof import('../core/utils/src/helpers')['packageManager']>
1475-
readonly pagesPath: UnwrapRef<typeof import('../core/path/src/index')['pagesPath']>
1475+
readonly viewsPath: UnwrapRef<typeof import('../core/path/src/index')['viewsPath']>
14761476
readonly paramCase: UnwrapRef<typeof import('../core/strings/src/case')['paramCase']>
14771477
readonly parse: UnwrapRef<typeof import('../core/path/src/index')['parse']>
14781478
readonly parseArgs: UnwrapRef<typeof import('../core/cli/src/parse')['parseArgs']>
@@ -2349,7 +2349,7 @@ declare module '@vue/runtime-core' {
23492349
readonly p: UnwrapRef<typeof import('../core/utils/src/p')['p']>
23502350
readonly packageJsonPath: UnwrapRef<typeof import('../core/path/src/index')['packageJsonPath']>
23512351
readonly packageManager: UnwrapRef<typeof import('../core/utils/src/helpers')['packageManager']>
2352-
readonly pagesPath: UnwrapRef<typeof import('../core/path/src/index')['pagesPath']>
2352+
readonly viewsPath: UnwrapRef<typeof import('../core/path/src/index')['viewsPath']>
23532353
readonly paramCase: UnwrapRef<typeof import('../core/strings/src/case')['paramCase']>
23542354
readonly parse: UnwrapRef<typeof import('../core/path/src/index')['parse']>
23552355
readonly parseArgs: UnwrapRef<typeof import('../core/cli/src/parse')['parseArgs']>

0 commit comments

Comments
 (0)