Skip to content

Commit 3821241

Browse files
committed
chore: wip
1 parent 7d2e01b commit 3821241

File tree

12 files changed

+10
-49
lines changed

12 files changed

+10
-49
lines changed

.stacks/certs/README.md

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

.stacks/core/build/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
"vue-docgen-web-types": "^0.1.8"
5959
},
6060
"devDependencies": {
61-
"@stacksjs/development": "workspace:*",
62-
"vite-plugin-mkcert": "^1.16.0"
61+
"@stacksjs/development": "workspace:*"
6362
}
6463
}

.stacks/core/types/src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export enum NpmScript {
157157
BuildDocs = 'build:docs',
158158
BuildStacks = 'build:stacks',
159159
Clean = 'rimraf bun.lockb node_modules/ .stacks/**/dist',
160-
Dev = 'dev',',
160+
Dev = 'dev',
161161
DevDesktop = 'dev:desktop',
162162
DevPages = 'dev:pages',
163163
DevFunctions = 'dev:functions',

.stacks/core/ui/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@
6262
"@unocss/transformer-compile-class": "^0.55.3",
6363
"pinia": "^2.1.6",
6464
"unocss": "^0.55.3",
65+
"unplugin-vue-router": "^0.6.4",
66+
"vite-plugin-vue-layouts": "^0.8.0",
6567
"vue": "^3.3.4",
6668
"vue-tsc": "^1.8.8"
6769
},
@@ -75,6 +77,8 @@
7577
"@unocss/transformer-compile-class": "^0.55.3",
7678
"pinia": "^2.1.6",
7779
"unocss": "^0.55.3",
80+
"unplugin-vue-router": "^0.6.4",
81+
"vite-plugin-vue-layouts": "^0.8.0",
7882
"vue": "^3.3.4",
7983
"vue-tsc": "^1.8.8"
8084
},

.stacks/core/utils/src/helpers.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import type { Result } from '@stacksjs/error-handling'
1414
import { err, ok } from '@stacksjs/error-handling'
1515
import { semver } from './versions'
1616
import ui from '~/config/ui'
17-
import dependencies from '~/config/deps'
1817
import app from '~/config/app'
1918

2019
export async function packageManager() {
@@ -52,9 +51,7 @@ export async function ensureProjectIsInitialized() {
5251
}
5352

5453
export async function installIfVersionMismatch() {
55-
const deps = dependencies
56-
57-
const requiredBunVersion = deps['bun.sh'] || '0.7.1'
54+
const requiredBunVersion = '0.8.1'
5855
const installedBunVersion = process.version
5956

6057
if (!semver.satisfies(installedBunVersion, requiredBunVersion)) {

.stacks/core/vite/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { runCommand } from '@stacksjs/cli'
22
import { handleError } from '@stacksjs/error-handling'
33

4-
const result = await runCommand('bun build ./src/index.ts --outdir dist --format esm --external vite --external vitepress --external @stacksjs/path --external @stacksjs/cli --external @stacksjs/config --external @stacksjs/types --external @stacksjs/alias --external @stacksjs/validation --external vite-plugin-mkcert --external kolorist --external @stacksjs/server --external unplugin-auto-import/vite --external unplugin-vue-components/vite --external @vitejs/plugin-vue --external unocss/vite --external vite-plugin-inspect --external vite-plugin-pages --external vite-plugin-pwa --external pnpapi --external defu --external @stacksjs/env --target bun', {
4+
const result = await runCommand('bun build ./src/index.ts --outdir dist --format esm --external vite --external vitepress --external @stacksjs/path --external @stacksjs/cli --external @stacksjs/config --external @stacksjs/types --external @stacksjs/alias --external @stacksjs/validation --external kolorist --external @stacksjs/server --external unplugin-auto-import/vite --external unplugin-vue-components/vite --external @vitejs/plugin-vue --external unocss/vite --external vite-plugin-inspect --external vite-plugin-pages --external vite-plugin-pwa --external pnpapi --external defu --external @stacksjs/env --target bun', {
55
cwd: import.meta.dir,
66
})
77

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { type ViteConfig } from '@stacksjs/types'
22
import * as p from '@stacksjs/path'
33
import { alias } from '@stacksjs/alias'
4-
5-
// import mkcert from 'vite-plugin-mkcert'
64
import * as c from 'kolorist'
75
import pkgjson from '../package.json'
86
import app from '../../../../config/app'
@@ -45,13 +43,6 @@ export const vueComponentsConfig: ViteConfig = {
4543
uiEngine(),
4644
cssEngine(),
4745
inspect(),
48-
// mkcert({
49-
// hosts: ['localhost', 'stacks.test', 'api.stacks.test', 'admin.stacks.test', 'libs.stacks.test', 'docs.stacks.test'],
50-
// autoUpgrade: true,
51-
// savePath: p.frameworkPath('certs/components'),
52-
// keyFileName: library.name ? `library-${library.name}-key.pem` : 'library-key.pem',
53-
// certFileName: library.name ? `library-${library.name}-cert.pem` : 'library-cert.pem',
54-
// }),
5546

5647
// @ts-expect-error TODO: fix this
5748
{

.stacks/core/vite/src/plugin/ssl-cert.ts

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

.stacks/models/User.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

.stacks/stacks/tables/vite.config.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import process from 'node:process'
22
import { defineConfig, loadEnv } from 'vite'
33
import { type BuildOptions as ViteBuildOptions } from 'vite'
4-
import mkcert from 'vite-plugin-mkcert'
54
import Components from 'unplugin-vue-components/vite'
65
import { type ViteConfig } from '../../core/types/src'
76
import { frameworkPath, libraryEntryPath, libsPath, projectPath, storagePath } from '../../core/path/src'
@@ -39,14 +38,7 @@ export const vueComponentsConfig: ViteConfig = {
3938
// allow auto import and register components used in markdown
4039
include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
4140
dts: 'src/components.d.ts',
42-
}),
43-
mkcert({
44-
hosts: ['localhost', 'stacks.test', 'api.stacks.test', 'admin.stacks.test', 'libs.stacks.test', 'docs.stacks.test'],
45-
autoUpgrade: true,
46-
savePath: frameworkPath('certs/components'),
47-
keyFileName: library.name ? `library-${library.name}-key.pem` : 'library-key.pem',
48-
certFileName: library.name ? `library-${library.name}-cert.pem` : 'library-cert.pem',
49-
}),
41+
})
5042
],
5143

5244
build: vueComponentsBuildOptions(),

0 commit comments

Comments
 (0)