Skip to content

Commit 1a0f996

Browse files
committed
chore: wip
1 parent 5735d26 commit 1a0f996

File tree

9 files changed

+31
-39
lines changed

9 files changed

+31
-39
lines changed

.stacks/core/types/src/binary.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
* The Binary/CLI Options used in `./config/binary.ts`.
33
*/
44
export interface BinaryOptions {
5-
name?: string
6-
command?: string
7-
description?: string
8-
// path?: string // TODO: add this for a configurable path where the commands are located
5+
name: string
6+
command: string
7+
description: string
8+
// path: string // TODO: add this for a configurable path where the commands are located
99
}
1010

1111
export type BinaryConfig = Partial<BinaryOptions>

.stacks/core/types/src/cdn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ export interface CdnOptions {
1414
driver: string
1515
}
1616

17-
export type CdnConfig = CdnOptions
17+
export type CdnConfig = Partial<CdnOptions>

.stacks/core/types/src/cloud.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,22 @@ export interface CloudOptions {
22
driver: 'aws'
33

44
storage: {
5-
private: boolean
5+
/**
6+
* Whether or not to also attach a file system to the cloud.
7+
* This is in addition to the S3 storage. Disable this
8+
* if you do not need to access the file system.
9+
*
10+
* @default true
11+
* @example
12+
* ```ts
13+
* export default {
14+
* storage: {
15+
* useFileSystem: false
16+
* }
17+
* }
18+
* ```
19+
*/
20+
useFileSystem: boolean
621
}
722

823
firewall: {

.stacks/core/types/src/storage.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,6 @@ export interface StorageOptions {
88
* @see https://stacksjs.dev/docs/storage
99
*/
1010
driver: 's3' | 'local'
11-
12-
/**
13-
* **Storage Name**
14-
*
15-
* The name of the storage bucket.
16-
*
17-
* @default string `${app.url}-${region}-${accountId}`
18-
* @see https://stacksjs.dev/docs/storage
19-
*/
20-
name: string
2111
}
2212

2313
export type StorageConfig = Partial<StorageOptions>

config/binary.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { BinaryConfig } from '@stacksjs/types'
88
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
99
*/
1010
export default {
11-
name: 'Stacks CLI',
12-
command: 'stacks', // enables `stacks <command> <options>`
11+
name: 'Buddy CLI',
12+
command: 'buddy', // enables `buddy <command> <options>`
1313
description: 'This is an example command to illustrate how to create your own commands. Check out `../app/commands` for more.',
1414
} satisfies BinaryConfig

config/cdn.ts

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

config/cloud.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
import type { CloudConfig } from '@stacksjs/types'
2-
import { path as p } from '@stacksjs/path'
32
import security from './security'
43

54
/**
65
* **Cloud**
76
*
8-
* This configuration defines all of your services. Because Stacks is fully-typed, you may
9-
* hover any of the options below and the definitions will be provided. In case you
10-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
7+
* This configuration defines your cloud. Because Stacks is fully-typed, you may hover
8+
* any of the options below and the definitions will be provided. In case you have
9+
* any questions, feel free to reach out via Discord or GitHub Discussions.
1110
*/
1211
export default {
12+
driver: 'aws',
1313
firewall: security.app.firewall,
1414
storage: {
15-
private: true,
16-
}
15+
useFileSystem: true,
16+
},
17+
// cdn: {}
1718
} satisfies CloudConfig

config/security.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,5 @@ export default {
115115
// },
116116
],
117117
},
118-
}
118+
},
119119
} satisfies SecurityConfig

config/storage.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { StorageConfig } from '@stacksjs/types'
2-
import app from './app'
32

43
/**
54
* **Storage Options**
@@ -10,5 +9,4 @@ import app from './app'
109
*/
1110
export default {
1211
driver: 's3',
13-
name: app.name || 'my-custom-bucket-name',
1412
} satisfies StorageConfig

0 commit comments

Comments
 (0)