Skip to content

Commit 9adec1d

Browse files
committed
chore: wip
1 parent da5e0ba commit 9adec1d

File tree

99 files changed

+470
-278
lines changed

Some content is hidden

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

99 files changed

+470
-278
lines changed

.stacks/auto-imports.d.ts

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ declare global {
1313
const $toRef: typeof import('vue/macros')['$toRef']
1414
const Collection: typeof import('./core/objects/src/index')['Collection']
1515
const CssEngine: typeof import('@stacksjs/ui')['CssEngine']
16-
const DnsStack: typeof import('./core/cloud/src/index')['DnsStack']
1716
const EffectScope: typeof import('vue')['EffectScope']
1817
const Err: typeof import('./core/error-handling/src/index')['Err']
1918
const ExitCode: typeof import('./core/cli/src/index')['ExitCode']
@@ -54,9 +53,7 @@ declare global {
5453
const auth: typeof import('./core/auth/src/index')['auth']
5554
const authPath: typeof import('./core/path/src/index')['authPath']
5655
const autoResetRef: typeof import('./core/utils/src/vendors')['autoResetRef']
57-
const backendEnv: typeof import('./core/validation/src/validate')['backendEnv']
58-
const backendEnvValidation: typeof import('./core/validation/src/validate')['backendEnvValidation']
59-
const backendEnvValidations: typeof import('./core/validation/src/validate')['backendEnvValidations']
56+
const backendEnvSchema: typeof import('./core/validation/src/validate')['backendEnvSchema']
6057
const base64Encode: typeof import('./core/security/src/hash')['base64Encode']
6158
const base64Verify: typeof import('./core/security/src/hash')['base64Verify']
6259
const basename: typeof import('./core/path/src/index')['basename']
@@ -233,12 +230,10 @@ declare global {
233230
const ensurePrefix: typeof import('./core/strings/src/utils')['ensurePrefix']
234231
const ensureSuffix: typeof import('./core/strings/src/utils')['ensureSuffix']
235232
const env: typeof import('./core/validation/src/validate')['env']
236-
const envValidation: typeof import('./core/validation/src/validate')['envValidation']
237-
const envValidations: typeof import('./core/validation/src/validate')['envValidations']
233+
const envSchema: typeof import('./core/validation/src/validate')['envSchema']
238234
const equal: typeof import('./core/utils/src/currency')['equal']
239235
const err: typeof import('./core/error-handling/src/index')['err']
240236
const errAsync: typeof import('./core/error-handling/src/index')['errAsync']
241-
const errorHandler: typeof import('./core/error-handling/src/index')['errorHandler']
242237
const errorHandlingPath: typeof import('./core/path/src/index')['errorHandlingPath']
243238
const errorMessageOptions: typeof import('./core/validation/src/validate')['errorMessageOptions']
244239
const eslint: typeof import('./core/lint/src/index')['eslint']
@@ -266,9 +261,7 @@ declare global {
266261
const fromPromise: typeof import('./core/error-handling/src/index')['fromPromise']
267262
const fromSafePromise: typeof import('./core/error-handling/src/index')['fromSafePromise']
268263
const fromThrowable: typeof import('./core/error-handling/src/index')['fromThrowable']
269-
const frontendEnv: typeof import('./core/validation/src/validate')['frontendEnv']
270-
const frontendEnvValidation: typeof import('./core/validation/src/validate')['frontendEnvValidation']
271-
const frontendEnvValidations: typeof import('./core/validation/src/validate')['frontendEnvValidations']
264+
const frontendEnvSchema: typeof import('./core/validation/src/validate')['frontendEnvSchema']
272265
const fs: typeof import('./core/storage/src/index')['fs']
273266
const functionsPath: typeof import('./core/path/src/index')['functionsPath']
274267
const generateAppKey: typeof import('./core/security/src/key')['generateAppKey']
@@ -553,7 +546,6 @@ declare global {
553546
const runCommands: typeof import('./core/cli/src/run')['runCommands']
554547
const runNpmScript: typeof import('./core/utils/src/helpers')['runNpmScript']
555548
const runtimePath: typeof import('./core/path/src/index')['runtimePath']
556-
const safeEnv: typeof import('./core/validation/src/validate')['safeEnv']
557549
const sample: typeof import('./core/arrays/src/index')['sample']
558550
const schedulerPath: typeof import('./core/path/src/index')['schedulerPath']
559551
const scriptsPath: typeof import('./core/path/src/index')['scriptsPath']
@@ -698,7 +690,6 @@ declare global {
698690
const useElementSize: typeof import('./core/utils/src/vendors')['useElementSize']
699691
const useElementVisibility: typeof import('./core/utils/src/vendors')['useElementVisibility']
700692
const useEmail: typeof import('./core/notifications/src/index')['useEmail']
701-
const useEnv: typeof import('./core/validation/src/validate')['useEnv']
702693
const useEvent: typeof import('./core/events/src/index')['useEvent']
703694
const useEventBus: typeof import('./core/utils/src/vendors')['useEventBus']
704695
const useEventListener: typeof import('./core/utils/src/vendors')['useEventListener']
@@ -863,7 +854,6 @@ declare module 'vue' {
863854
readonly : UnwrapRef<typeof import('./core/orm/src/index')['']>
864855
readonly Collection: UnwrapRef<typeof import('./core/objects/src/index')['Collection']>
865856
readonly CssEngine: UnwrapRef<typeof import('@stacksjs/ui')['CssEngine']>
866-
readonly DnsStack: UnwrapRef<typeof import('./core/cloud/src/index')['DnsStack']>
867857
readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
868858
readonly Err: UnwrapRef<typeof import('./core/error-handling/src/index')['Err']>
869859
readonly ExitCode: UnwrapRef<typeof import('./core/cli/src/index')['ExitCode']>
@@ -904,8 +894,7 @@ declare module 'vue' {
904894
readonly auth: UnwrapRef<typeof import('./core/auth/src/index')['auth']>
905895
readonly authPath: UnwrapRef<typeof import('./core/path/src/index')['authPath']>
906896
readonly autoResetRef: UnwrapRef<typeof import('./core/utils/src/vendors')['autoResetRef']>
907-
readonly backendEnv: UnwrapRef<typeof import('./core/validation/src/validate')['backendEnv']>
908-
readonly backendEnvValidation: UnwrapRef<typeof import('./core/validation/src/validate')['backendEnvValidation']>
897+
readonly backendEnvSchema: UnwrapRef<typeof import('./core/validation/src/validate')['backendEnvSchema']>
909898
readonly base64Encode: UnwrapRef<typeof import('./core/security/src/hash')['base64Encode']>
910899
readonly base64Verify: UnwrapRef<typeof import('./core/security/src/hash')['base64Verify']>
911900
readonly basename: UnwrapRef<typeof import('./core/path/src/index')['basename']>
@@ -1082,7 +1071,7 @@ declare module 'vue' {
10821071
readonly ensurePrefix: UnwrapRef<typeof import('./core/strings/src/utils')['ensurePrefix']>
10831072
readonly ensureSuffix: UnwrapRef<typeof import('./core/strings/src/utils')['ensureSuffix']>
10841073
readonly env: UnwrapRef<typeof import('./core/validation/src/validate')['env']>
1085-
readonly envValidation: UnwrapRef<typeof import('./core/validation/src/validate')['envValidation']>
1074+
readonly envSchema: UnwrapRef<typeof import('./core/validation/src/validate')['envSchema']>
10861075
readonly equal: UnwrapRef<typeof import('./core/utils/src/currency')['equal']>
10871076
readonly err: UnwrapRef<typeof import('./core/error-handling/src/index')['err']>
10881077
readonly errAsync: UnwrapRef<typeof import('./core/error-handling/src/index')['errAsync']>
@@ -1113,8 +1102,7 @@ declare module 'vue' {
11131102
readonly fromPromise: UnwrapRef<typeof import('./core/error-handling/src/index')['fromPromise']>
11141103
readonly fromSafePromise: UnwrapRef<typeof import('./core/error-handling/src/index')['fromSafePromise']>
11151104
readonly fromThrowable: UnwrapRef<typeof import('./core/error-handling/src/index')['fromThrowable']>
1116-
readonly frontendEnv: UnwrapRef<typeof import('./core/validation/src/validate')['frontendEnv']>
1117-
readonly frontendEnvValidation: UnwrapRef<typeof import('./core/validation/src/validate')['frontendEnvValidation']>
1105+
readonly frontendEnvSchema: UnwrapRef<typeof import('./core/validation/src/validate')['frontendEnvSchema']>
11181106
readonly fs: UnwrapRef<typeof import('./core/storage/src/index')['fs']>
11191107
readonly functionsPath: UnwrapRef<typeof import('./core/path/src/index')['functionsPath']>
11201108
readonly generateAppKey: UnwrapRef<typeof import('./core/security/src/key')['generateAppKey']>
@@ -1399,7 +1387,6 @@ declare module 'vue' {
13991387
readonly runCommands: UnwrapRef<typeof import('./core/cli/src/run')['runCommands']>
14001388
readonly runNpmScript: UnwrapRef<typeof import('./core/utils/src/helpers')['runNpmScript']>
14011389
readonly runtimePath: UnwrapRef<typeof import('./core/path/src/index')['runtimePath']>
1402-
readonly safeEnv: UnwrapRef<typeof import('./core/validation/src/validate')['safeEnv']>
14031390
readonly sample: UnwrapRef<typeof import('./core/arrays/src/index')['sample']>
14041391
readonly schedulerPath: UnwrapRef<typeof import('./core/path/src/index')['schedulerPath']>
14051392
readonly scriptsPath: UnwrapRef<typeof import('./core/path/src/index')['scriptsPath']>
@@ -1544,7 +1531,6 @@ declare module 'vue' {
15441531
readonly useElementSize: UnwrapRef<typeof import('./core/utils/src/vendors')['useElementSize']>
15451532
readonly useElementVisibility: UnwrapRef<typeof import('./core/utils/src/vendors')['useElementVisibility']>
15461533
readonly useEmail: UnwrapRef<typeof import('./core/notifications/src/index')['useEmail']>
1547-
readonly useEnv: UnwrapRef<typeof import('./core/validation/src/validate')['useEnv']>
15481534
readonly useEvent: UnwrapRef<typeof import('./core/events/src/index')['useEvent']>
15491535
readonly useEventBus: UnwrapRef<typeof import('./core/utils/src/vendors')['useEventBus']>
15501536
readonly useEventListener: UnwrapRef<typeof import('./core/utils/src/vendors')['useEventListener']>
@@ -1703,7 +1689,6 @@ declare module '@vue/runtime-core' {
17031689
readonly : UnwrapRef<typeof import('./core/orm/src/index')['']>
17041690
readonly Collection: UnwrapRef<typeof import('./core/objects/src/index')['Collection']>
17051691
readonly CssEngine: UnwrapRef<typeof import('@stacksjs/ui')['CssEngine']>
1706-
readonly DnsStack: UnwrapRef<typeof import('./core/cloud/src/index')['DnsStack']>
17071692
readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
17081693
readonly Err: UnwrapRef<typeof import('./core/error-handling/src/index')['Err']>
17091694
readonly ExitCode: UnwrapRef<typeof import('./core/cli/src/index')['ExitCode']>
@@ -1744,8 +1729,7 @@ declare module '@vue/runtime-core' {
17441729
readonly auth: UnwrapRef<typeof import('./core/auth/src/index')['auth']>
17451730
readonly authPath: UnwrapRef<typeof import('./core/path/src/index')['authPath']>
17461731
readonly autoResetRef: UnwrapRef<typeof import('./core/utils/src/vendors')['autoResetRef']>
1747-
readonly backendEnv: UnwrapRef<typeof import('./core/validation/src/validate')['backendEnv']>
1748-
readonly backendEnvValidation: UnwrapRef<typeof import('./core/validation/src/validate')['backendEnvValidation']>
1732+
readonly backendEnvSchema: UnwrapRef<typeof import('./core/validation/src/validate')['backendEnvSchema']>
17491733
readonly base64Encode: UnwrapRef<typeof import('./core/security/src/hash')['base64Encode']>
17501734
readonly base64Verify: UnwrapRef<typeof import('./core/security/src/hash')['base64Verify']>
17511735
readonly basename: UnwrapRef<typeof import('./core/path/src/index')['basename']>
@@ -1922,7 +1906,7 @@ declare module '@vue/runtime-core' {
19221906
readonly ensurePrefix: UnwrapRef<typeof import('./core/strings/src/utils')['ensurePrefix']>
19231907
readonly ensureSuffix: UnwrapRef<typeof import('./core/strings/src/utils')['ensureSuffix']>
19241908
readonly env: UnwrapRef<typeof import('./core/validation/src/validate')['env']>
1925-
readonly envValidation: UnwrapRef<typeof import('./core/validation/src/validate')['envValidation']>
1909+
readonly envSchema: UnwrapRef<typeof import('./core/validation/src/validate')['envSchema']>
19261910
readonly equal: UnwrapRef<typeof import('./core/utils/src/currency')['equal']>
19271911
readonly err: UnwrapRef<typeof import('./core/error-handling/src/index')['err']>
19281912
readonly errAsync: UnwrapRef<typeof import('./core/error-handling/src/index')['errAsync']>
@@ -1953,8 +1937,7 @@ declare module '@vue/runtime-core' {
19531937
readonly fromPromise: UnwrapRef<typeof import('./core/error-handling/src/index')['fromPromise']>
19541938
readonly fromSafePromise: UnwrapRef<typeof import('./core/error-handling/src/index')['fromSafePromise']>
19551939
readonly fromThrowable: UnwrapRef<typeof import('./core/error-handling/src/index')['fromThrowable']>
1956-
readonly frontendEnv: UnwrapRef<typeof import('./core/validation/src/validate')['frontendEnv']>
1957-
readonly frontendEnvValidation: UnwrapRef<typeof import('./core/validation/src/validate')['frontendEnvValidation']>
1940+
readonly frontendEnvSchema: UnwrapRef<typeof import('./core/validation/src/validate')['frontendEnvSchema']>
19581941
readonly fs: UnwrapRef<typeof import('./core/storage/src/index')['fs']>
19591942
readonly functionsPath: UnwrapRef<typeof import('./core/path/src/index')['functionsPath']>
19601943
readonly generateAppKey: UnwrapRef<typeof import('./core/security/src/key')['generateAppKey']>
@@ -2239,7 +2222,6 @@ declare module '@vue/runtime-core' {
22392222
readonly runCommands: UnwrapRef<typeof import('./core/cli/src/run')['runCommands']>
22402223
readonly runNpmScript: UnwrapRef<typeof import('./core/utils/src/helpers')['runNpmScript']>
22412224
readonly runtimePath: UnwrapRef<typeof import('./core/path/src/index')['runtimePath']>
2242-
readonly safeEnv: UnwrapRef<typeof import('./core/validation/src/validate')['safeEnv']>
22432225
readonly sample: UnwrapRef<typeof import('./core/arrays/src/index')['sample']>
22442226
readonly schedulerPath: UnwrapRef<typeof import('./core/path/src/index')['schedulerPath']>
22452227
readonly scriptsPath: UnwrapRef<typeof import('./core/path/src/index')['scriptsPath']>
@@ -2384,7 +2366,6 @@ declare module '@vue/runtime-core' {
23842366
readonly useElementSize: UnwrapRef<typeof import('./core/utils/src/vendors')['useElementSize']>
23852367
readonly useElementVisibility: UnwrapRef<typeof import('./core/utils/src/vendors')['useElementVisibility']>
23862368
readonly useEmail: UnwrapRef<typeof import('./core/notifications/src/index')['useEmail']>
2387-
readonly useEnv: UnwrapRef<typeof import('./core/validation/src/validate')['useEnv']>
23882369
readonly useEvent: UnwrapRef<typeof import('./core/events/src/index')['useEvent']>
23892370
readonly useEventBus: UnwrapRef<typeof import('./core/utils/src/vendors')['useEventBus']>
23902371
readonly useEventListener: UnwrapRef<typeof import('./core/utils/src/vendors')['useEventListener']>

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
import { defineBuildConfig } from 'unbuild'
1+
import { alias, defineBuildConfig } from '@stacksjs/development'
22

33
export default defineBuildConfig({
4+
alias,
5+
46
entries: [
7+
'./src/index',
58
{
69
builder: 'mkdist',
710
input: './src/',

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
import { defineBuildConfig } from '@stacksjs/development'
1+
import { alias, defineBuildConfig } from '@stacksjs/development'
22

33
export default defineBuildConfig({
4+
alias,
5+
46
entries: [
7+
'./src/index',
58
{
69
builder: 'mkdist',
710
input: './src/',

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
import { defineBuildConfig } from 'unbuild'
1+
import { alias, defineBuildConfig } from '@stacksjs/development'
22

33
export default defineBuildConfig({
4+
alias,
5+
46
entries: [
5-
{
6-
builder: 'mkdist',
7-
input: './src/',
8-
outDir: './dist/',
9-
format: 'esm',
10-
},
7+
'./src/index',
118
],
129

10+
outDir: './dist/',
1311
clean: true,
1412
declaration: true,
1513
})

.stacks/core/alias/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,5 @@
4343
},
4444
"peerDependencies": {
4545
"@stacksjs/path": "workspace:*"
46-
},
47-
"devDependencies": {
48-
"@stacksjs/development": "workspace:*"
4946
}
5047
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ export const alias: Record<string, string> = {
9898
'@stacksjs/x-ray': p.xRayPath('src/index.ts'),
9999
'@stacksjs/x-ray/*': p.xRayPath('src/*'),
100100
'framework/*': p.frameworkPath('*'),
101-
'stacks': p.frameworkPath('src/index.ts'),
101+
// 'stacks': p.frameworkPath('src/index.ts'),
102+
'stacks/*': p.frameworkPath('src/*'),
102103
'app/*': p.appPath('*'),
103104
'config/*': p.projectConfigPath('*'),
104105
'components/*': p.componentsPath('*'),

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
import { defineBuildConfig } from 'unbuild'
1+
import { alias, defineBuildConfig } from '@stacksjs/development'
22

33
export default defineBuildConfig({
4+
alias,
5+
46
entries: [
7+
'./src/index',
58
{
69
builder: 'mkdist',
710
input: './src/',

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
import { defineBuildConfig } from 'unbuild'
1+
import { alias, defineBuildConfig } from '@stacksjs/development'
22

33
export default defineBuildConfig({
4+
alias,
5+
46
entries: [
7+
'./src/index',
58
{
69
builder: 'mkdist',
710
input: './src/',

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
import { defineBuildConfig } from 'unbuild'
1+
import { alias, defineBuildConfig } from '@stacksjs/development'
22

33
export default defineBuildConfig({
4+
alias,
5+
46
entries: [
7+
'./src/index',
58
{
69
builder: 'mkdist',
710
input: './src/',

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { defineBuildConfig } from 'unbuild'
2-
import { alias } from '@stacksjs/alias'
1+
import { alias, defineBuildConfig } from '@stacksjs/development'
32

43
export default defineBuildConfig({
54
alias,

0 commit comments

Comments
 (0)