Skip to content

Commit 7a5a801

Browse files
committed
chore: wip
1 parent a8c6a1e commit 7a5a801

File tree

6 files changed

+28
-6
lines changed

6 files changed

+28
-6
lines changed

config/logging.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,14 @@ export default {
1818
* @default 'storage/logs/stacks.log'
1919
*/
2020
logsPath: storagePath('logs/stacks.log'),
21+
22+
/**
23+
* **Deployments Path**
24+
*
25+
* The path to the deployments folder. This will be used to write deployment logs to a file.
26+
* If you do not want to write deployment logs to a file, you may set this to `null`.
27+
*
28+
* @default 'storage/logs/deployments.log'
29+
*/
30+
deploymentsPath: storagePath('logs/deployments.log'),
2131
} satisfies LoggingConfig

storage/framework/core/buddy/src/commands/build.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,16 @@ export function build(buddy: CLI) {
2929
buddy
3030
.command('build [type]', descriptions.build)
3131
.option('-c, --components', descriptions.components)
32-
.option('-v, --vue-components', descriptions.vueComponents) // these are automatically built with your -c option as well
33-
.option('-w, --web-components', descriptions.webComponents) // these are automatically built with your -c option as well
34-
.option('-e, --elements', descriptions.elements)
32+
.option('-v, --vue-components', descriptions.vueComponents) // also automatically built via the -c flag
33+
.option('-w, --web-components', descriptions.webComponents) // also automatically built via the -c flag
34+
.option('-e, --elements', descriptions.elements) // alias for --web-components
3535
.option('-f, --functions', descriptions.functions)
3636
.option('-p, --views', descriptions.pages)
37+
.option('--pages', descriptions.pages) // alias for --views
3738
.option('-d, --docs', descriptions.docs)
3839
.option('-b, --buddy', descriptions.buddy, { default: false })
3940
.option('-s, --stacks', descriptions.framework, { default: false })
40-
.option('-p, --project [project]', descriptions.project, { default: false })
41+
.option('--project [project]', descriptions.project, { default: false })
4142
.option('--server', descriptions.server, { default: false })
4243
.option('--verbose', descriptions.verbose, { default: false })
4344
.action(async (server: string | undefined, options: BuildOptions) => {

storage/framework/core/cli/src/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function intro(command: string, options?: IntroOptions): Promise<nu
1616
console.log()
1717
}
1818

19-
log.info(`Running ${bgCyan(italic(bold(` ${command} `)))}`)
19+
log.info(`Running ${bgCyan(italic(bold(` ${command} `)))}`, { styled: false })
2020

2121
if (options?.showPerformance === false || options?.quiet) return resolve(0)
2222

storage/framework/core/config/src/defaults.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,8 @@ export default {
461461
},
462462

463463
logging: {
464-
logsPath: 'storage/logs/console.log',
464+
logsPath: 'storage/logs/stacks.log',
465+
deploymentsPath: 'storage/logs/deployments.log',
465466
},
466467

467468
notification: {

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ export interface LoggingOptions {
1515
* @default 'storage/logs/console.log'
1616
*/
1717
logsPath: string
18+
19+
/**
20+
* **Deployments Path**
21+
*
22+
* The path to the deployments folder. This will be used to write deployment logs to a file.
23+
* If you do not want to write deployment logs to a file, you may set this to `null`.
24+
*
25+
* @default 'storage/logs/deployments.log'
26+
*/
27+
deploymentsPath: string
1828
}
1929

2030
export type LoggingConfig = Partial<LoggingOptions>

storage/logs/deployments/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)