Skip to content

Commit 68940d6

Browse files
committed
chore: wip
chore: wip chore: wip chore: wip chore: wip chore: wip chore: wip chore: wip
1 parent f9c506c commit 68940d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+201
-762
lines changed

.stacks/core/actions/src/dev/components.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ import { runCommand } from '@stacksjs/cli'
22
import { frameworkPath } from '@stacksjs/path'
33
import { NpmScript } from '@stacksjs/types'
44

5-
await runCommand(NpmScript.DevComponents, { cwd: frameworkPath(), verbose: true })
5+
await runCommand(NpmScript.DevComponents, {
6+
cwd: frameworkPath(),
7+
verbose: true
8+
})

.stacks/core/buddy/src/commands/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export async function deploy(buddy: CLI) {
3030
.option('--verbose', descriptions.verbose, { default: false })
3131
.action(async (options: DeployOptions) => {
3232
const perf = await intro('buddy deploy:domains')
33-
const result = await runAction(Action.Deploy, { ...options, domains: true, verbose: true })
33+
const result = await runAction(Action.Deploy, { ...options, domains: true, verbose: options.verbose })
3434

3535
if (result.isErr()) {
3636
outro('While running the `buddy deploy`, there was an issue', { startTime: perf, useSeconds: true, isError: true }, result.error as Error)

.stacks/core/buddy/src/commands/dev.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export async function dev(buddy: CLI) {
2727
.option('--verbose', descriptions.verbose, { default: false })
2828
.action(async (options: DevOptions) => {
2929
// const perf = await intro('buddy dev')
30-
// const result = await runAction(Action.Dev, { ...options, verbose: true })
30+
// const result = await runAction(Action.Dev, options)
3131

3232
if (hasNoOptions(options)) {
3333
const answer = await prompt.require()
@@ -72,7 +72,7 @@ export async function dev(buddy: CLI) {
7272
.command('dev:components', descriptions.components)
7373
.action(async (options: DevOptions) => {
7474
const perf = await intro('buddy dev:components')
75-
const result = await runAction(Action.DevComponents, { ...options, verbose: true })
75+
const result = await runAction(Action.DevComponents, options)
7676

7777
if (options.verbose)
7878
log.info('runAction result is', result)
@@ -93,7 +93,7 @@ export async function dev(buddy: CLI) {
9393
.option('--verbose', descriptions.verbose, { default: false })
9494
.action(async (options: DevOptions) => {
9595
const perf = await intro('buddy dev:docs')
96-
const result = await runAction(Action.DevDocs, { ...options, verbose: true })
96+
const result = await runAction(Action.DevDocs, options)
9797

9898
// check if result is an array
9999
if (Array.isArray(result)) {

.stacks/core/build/src/index.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
export * as vueComponentExample from '@stacksjs/vite/example-vue'
2-
export * as webComponentExample from '@stacksjs/vite/example-wc'
3-
export * as functions from '@stacksjs/vite/functions'
4-
export * as views from '@stacksjs/vite/views'
5-
export * as vueComponents from '@stacksjs/vite/vue-components'
6-
export * as webComponents from '@stacksjs/vite/web-components'
7-
export * as stacks from '@stacksjs/vite/stacks'
1+
export {
2+
vueComponentExample,
3+
webComponentExample,
4+
functions,
5+
views,
6+
vueComponents,
7+
webComponents,
8+
stacks,
9+
} from '@stacksjs/vite'

.stacks/core/config/build.config.ts

Lines changed: 2 additions & 160 deletions
Original file line numberDiff line numberDiff line change
@@ -6,171 +6,13 @@ export default defineBuildConfig({
66
entries,
77

88
externals: [
9-
'@types/pluralize',
10-
'rimraf',
11-
'@dinero.js/currencies',
12-
'dinero.js',
13-
'export-size',
14-
'detect-indent',
15-
'title-case',
16-
'redis',
17-
'perfect-debounce',
18-
'vue-component-meta',
19-
'detect-newline',
20-
'@maverick-js/signals',
21-
'nitropack',
22-
'kolorist',
23-
'mysql2',
24-
'@playwright/test',
25-
'macroable',
26-
'consola',
27-
'pinia',
28-
'constructs',
29-
'@unocss/transformer-compile-class',
30-
'@julr/unocss-preset-forms',
31-
'pathe',
32-
'vitest',
33-
'node-ray',
34-
'eslint',
35-
'collect.js',
36-
'unbuild',
37-
'changelogen',
38-
'@faker-js/faker',
39-
'unocss',
40-
'@novu/stateless',
41-
'meilisearch',
42-
'vue',
43-
'@vinejs/vine',
44-
'vite-plugin-pwa',
45-
'vite-plugin-inspect',
46-
'neverthrow',
47-
'cac',
48-
'execa',
49-
'unplugin-vue-components',
50-
'vite-ssg',
51-
'vite',
52-
'vitepress',
53-
'unplugin-auto-import',
54-
'ora',
559
'stacks',
56-
'stacks/actions',
57-
'stacks/ai',
58-
'stacks/alias',
59-
'stacks/analytics',
60-
'stacks/arrays',
61-
'stacks/auth',
62-
'stacks/buddy',
63-
'stacks/build',
64-
'stacks/cache',
65-
'stacks/chat',
66-
'stacks/cli',
67-
'stacks/cloud',
68-
'stacks/collections',
69-
'stacks/config',
70-
'stacks/database',
71-
'stacks/datetime',
72-
'stacks/desktop',
73-
'stacks/development',
74-
'stacks/dns',
75-
'stacks/docs',
76-
'stacks/email',
77-
'stacks/error-handling',
78-
'stacks/events',
79-
'stacks/faker',
80-
'stacks/git',
81-
'stacks/health',
82-
'stacks/lint',
83-
'stacks/logging',
84-
'stacks/notifications',
85-
'stacks/objects',
86-
'stacks/orm',
87-
'stacks/path',
88-
'stacks/payments',
89-
'stacks/push',
90-
'stacks/query-builder',
91-
'stacks/queue',
92-
'stacks/realtime',
93-
'stacks/repl',
94-
'stacks/router',
95-
'stacks/scheduler',
96-
'stacks/search-engine',
97-
'stacks/security',
98-
'stacks/server',
99-
'stacks/signals',
100-
'stacks/slug',
101-
'stacks/sms',
102-
'stacks/storage',
103-
'stacks/strings',
104-
'stacks/tinker',
105-
'stacks/testing',
106-
'stacks/types',
107-
'stacks/ui',
10+
'stacks/vite',
10811
'stacks/utils',
10912
'stacks/validation',
110-
'stacks/vite',
111-
'stacks/vite-plugin',
112-
'@stacksjs/actions',
113-
'@stacksjs/ai',
114-
'@stacksjs/alias',
115-
'@stacksjs/analytics',
116-
'@stacksjs/arrays',
117-
'@stacksjs/auth',
118-
'@stacksjs/buddy',
119-
'@stacksjs/build',
120-
'@stacksjs/cache',
121-
'@stacksjs/chat',
122-
'@stacksjs/cli',
123-
'@stacksjs/cloud',
124-
'@stacksjs/collections',
125-
'@stacksjs/config',
126-
'@stacksjs/database',
127-
'@stacksjs/datetime',
128-
'@stacksjs/desktop',
129-
'@stacksjs/development',
130-
'@stacksjs/dns',
131-
'@stacksjs/docs',
132-
'@stacksjs/email',
133-
'@stacksjs/error-handling',
134-
'@stacksjs/events',
135-
'@stacksjs/faker',
136-
'@stacksjs/git',
137-
'@stacksjs/health',
138-
'@stacksjs/lint',
139-
'@stacksjs/logging',
140-
'@stacksjs/notifications',
141-
'@stacksjs/objects',
142-
'@stacksjs/orm',
14313
'@stacksjs/path',
144-
'@stacksjs/payments',
145-
'@stacksjs/push',
146-
'@stacksjs/query-builder',
147-
'@stacksjs/queue',
148-
'@stacksjs/realtime',
149-
'@stacksjs/repl',
150-
'@stacksjs/router',
151-
'@stacksjs/scheduler',
152-
'@stacksjs/search-engine',
153-
'@stacksjs/security',
154-
'@stacksjs/server',
155-
'@stacksjs/signals',
156-
'@stacksjs/slug',
157-
'@stacksjs/sms',
158-
'@stacksjs/storage',
159-
'@stacksjs/strings',
160-
'@stacksjs/tinker',
161-
'@stacksjs/testing',
162-
'@stacksjs/types',
163-
'@stacksjs/ui',
164-
'@stacksjs/utils',
165-
'@stacksjs/validation',
166-
'@stacksjs/vite',
167-
'@stacksjs/vite-plugin',
16814
],
16915

170-
rollup: {
171-
alias,
172-
},
173-
174-
declaration: true,
16+
declaration: false, // todo: investigate why it errors when enabled & whether it's useful
17517
clean: true,
17618
})

.stacks/core/config/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
],
2929
"exports": {
3030
".": {
31-
"types": "./dist/index.d.ts",
3231
"import": "./dist/index.mjs"
3332
}
3433
},

.stacks/core/config/src/defaults.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { ResolvedStacksOptions } from 'stacks/types'
22
import app from '../../../../config/app'
3+
import binary from '../../../../config/binary'
34
import cache from '../../../../config/cache'
45
import cdn from '../../../../config/cdn'
5-
import cli from '../../../../config/cli'
66
import database from '../../../../config/database'
77
import dependencies from '../../../../config/deps'
88
import dns from '../../../../config/dns'
@@ -19,11 +19,11 @@ import searchEngine from '../../../../config/search-engine'
1919
import services from '../../../../config/services'
2020
import ui from '../../../../config/ui'
2121

22-
export const defaults: ResolvedStacksOptions = {
22+
const defaults: ResolvedStacksOptions = {
2323
app,
24+
binary,
2425
cache,
2526
cdn,
26-
cli,
2727
database,
2828
dependencies,
2929
dns,
@@ -42,10 +42,11 @@ export const defaults: ResolvedStacksOptions = {
4242
}
4343

4444
export {
45+
defaults,
4546
app,
47+
binary,
4648
cache,
4749
cdn,
48-
cli,
4950
database,
5051
dependencies,
5152
dns,

.stacks/core/logging/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ export function dd(...args: any[]) {
1010
}
1111

1212
export const logger = consola
13-
1413
export const log = logger
14+
export const Console = logger

.stacks/core/notifications/build.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ export default defineBuildConfig({
1212
'./src/index',
1313
],
1414

15+
externals: [
16+
'@stacksjs/error-handling',
17+
'@stacksjs/config',
18+
'@stacksjs/logging',
19+
'@stacksjs/types',
20+
],
21+
1522
declaration: true,
1623
clean: false,
1724
})

.stacks/core/notifications/src/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ function useNotification(typeParam = 'email', driverParam = 'mailtrap') {
3737
}
3838
}
3939

40-
// function notification() {
41-
// return useNotification()
42-
// }
40+
function notification() {
41+
return useNotification()
42+
}
4343

4444
export {
4545
useEmail,
4646
useChat,
4747
useSMS,
4848
useNotification,
49+
notification,
4950
}

0 commit comments

Comments
 (0)