Skip to content

Commit a87edfb

Browse files
committed
chore: wip
1 parent 878bc5a commit a87edfb

File tree

10 files changed

+18
-1777
lines changed

10 files changed

+18
-1777
lines changed

bun.lockb

4.41 KB
Binary file not shown.

storage/framework/core/components/notification/auto-imports.d.ts

Lines changed: 0 additions & 1757 deletions
Large diffs are not rendered by default.

storage/framework/core/components/notification/components.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ export {}
77
/* prettier-ignore */
88
declare module 'vue' {
99
export interface GlobalComponents {
10+
'Carbon:cafe': typeof import('~icons/carbon/cafe')['default']
11+
'Carbon:logoTwitter': typeof import('~icons/carbon/logo-twitter')['default']
1012
CheckIcon: typeof import('./src/components/icons/CheckIcon.vue')['default']
1113
CloseIcon: typeof import('./src/components/icons/CloseIcon.vue')['default']
1214
CopyIcon: typeof import('./src/components/icons/CopyIcon.vue')['default']
@@ -19,6 +21,7 @@ declare module 'vue' {
1921
InfoIcon: typeof import('./src/components/icons/InfoIcon.vue')['default']
2022
Installation: typeof import('./src/components/Installation.vue')['default']
2123
Loader: typeof import('./src/components/icons/Loader.vue')['default']
24+
'Mdi:heart': typeof import('~icons/mdi/heart')['default']
2225
Others: typeof import('./src/components/Others.vue')['default']
2326
Position: typeof import('./src/components/Position.vue')['default']
2427
RouterLink: typeof import('vue-router')['RouterLink']

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"types": "dist/index.d.ts",
2828
"files": ["README.md", "dist", "src"],
2929
"scripts": {
30-
"dev": "bunx --bun vite",
30+
"dev": "vite --config ./vite.config.ts",
3131
"build": "vite build --mode lib && bun run build:types",
3232
"build:demo": "bunx --bun vite build",
3333
"build:types": "bunx --bun vue-tsc -p tsconfig.build.json && api-extractor run",

storage/framework/core/components/notification/vite.config.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ function minify(code: string) {
2121
let cssCodeStr = ''
2222

2323
export default defineConfig(({ command, mode }) => {
24-
const userConfig: UserConfig = {}
24+
const userConfig: UserConfig = {
25+
optimizeDeps: {
26+
exclude: ['fsevents'],
27+
},
28+
}
2529

2630
const commonPlugins = [
2731
Vue({
@@ -48,11 +52,6 @@ export default defineConfig(({ command, mode }) => {
4852
'pinia',
4953
'vue',
5054
'vue-i18n',
51-
// '@vueuse/core',
52-
// 'vitepress'
53-
// { '@stacksjs/ui': ['CssEngine', 'UiEngine', 'Store', 'presetForms', 'transformerCompileClass'] },
54-
// { '@stacksjs/logging': ['dd', 'dump'] }, // we also export `log` in st stacks/cli
55-
// { '@stacksjs/validation': ['validate', 'validateAll', 'validateSync', 'validateAllSync'] },
5655
VueHeadImports,
5756
VueRouterAutoImports,
5857
{
@@ -62,8 +61,6 @@ export default defineConfig(({ command, mode }) => {
6261

6362
// dts: p.frameworkPath('types/auto-imports.d.ts'),
6463

65-
dirs: [p.corePath()],
66-
6764
vueTemplate: true,
6865
}),
6966
]
@@ -80,7 +77,7 @@ export default defineConfig(({ command, mode }) => {
8077
cssCodeSplit: false,
8178
sourcemap: true,
8279
rollupOptions: {
83-
external: ['vue', '@stacksjs/utils'],
80+
external: ['vue', '@stacksjs/utils', 'fsevents'],
8481
output: [
8582
// {
8683
// format: 'cjs',

storage/framework/core/database/src/drivers/sqlite.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,14 @@ async function createTableMigration(modelPath: string): Promise<void> {
140140

141141
for (const [fieldName, options] of arrangeColumns(model.attributes)) {
142142
const fieldOptions = options as Attribute
143-
const columnType = mapFieldTypeToColumnType(fieldOptions.validations?.rule)
143+
const columnType = mapFieldTypeToColumnType(fieldOptions.validation?.rule)
144144
migrationContent += ` .addColumn('${fieldName}', '${columnType}'`
145145

146146
// Check if there are configurations that require the lambda function
147-
if (fieldOptions.unique || fieldOptions.validations?.rule?.required) {
147+
if (fieldOptions.unique || fieldOptions.validation?.rule?.required) {
148148
migrationContent += `, col => col`
149149
if (fieldOptions.unique) migrationContent += `.unique()`
150-
if (fieldOptions.validations?.rule?.required) migrationContent += `.notNull()`
150+
if (fieldOptions.validation?.rule?.required) migrationContent += `.notNull()`
151151
migrationContent += ``
152152
}
153153

storage/framework/core/env/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { Infer, VineBoolean, VineEnum, VineNumber, VineString } from '@stac
44
import env from '~/config/env'
55
import type { EnvKey } from '../../../env'
66

7-
// we need to get this just into right format so we can infer the type
7+
// we need to get this into the right format so we can infer the type
88
type EnvValue = string | boolean | number | readonly string[]
99
type EnvType = typeof env
1010
type EnvKeys = keyof EnvType

storage/framework/core/tinker/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
"url": "https://github.com/stacksjs/stacks/issues"
1717
},
1818
"keywords": ["tinker-stack", "repl", "ts", "vue", "stacks"],
19-
"module": "dist/index.js",
20-
"types": "dist/index.d.ts",
2119
"contributors": ["Chris Breuer <chris@stacksjs.org>"],
2220
"files": ["README.md", "dist", "src"],
2321
"scripts": {

storage/framework/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"scripts": {
1717
"dev": "wip: needs to start each dev server (views, api, components, docs, desktop)",
18-
"build": "./scripts/build",
18+
"build": "bun --filter='./core/*' run build && bun --filter='./core/components/*' run build",
1919
"publish:framework": "./scripts/publish",
2020
"publish:dummy-libs": "./scripts/publish-dummy-libs"
2121
}

storage/framework/views/web/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
"@stacksjs/config": "workspace:*",
1616
"@stacksjs/server": "workspace:*",
1717
"@unhead/vue": "^1.9.16",
18-
"@unocss/reset": "^0.61.4",
18+
"@unocss/reset": "^0.61.5",
1919
"@vueuse/core": "^10.11.0",
2020
"@vueuse/head": "^2.0.0",
2121
"nprogress": "^0.2.0",
2222
"pinia": "^2.1.7",
23-
"vue": "^3.4.31",
23+
"vue": "^3.4.32",
2424
"vue-i18n": "^9.13.1",
2525
"vue-router": "^4.4.0"
2626
},
@@ -38,7 +38,7 @@
3838
"rollup": "^4.18.1",
3939
"shikiji": "^0.10.2",
4040
"taze": "^0.15.2",
41-
"unocss": "^0.61.4",
41+
"unocss": "^0.61.5",
4242
"unplugin-auto-import": "^0.18.0",
4343
"unplugin-vue-components": "^0.27.3",
4444
"unplugin-vue-macros": "^2.9.5",

0 commit comments

Comments
 (0)