Skip to content

Commit 9cb9dec

Browse files
committed
refactor: update logs output
1 parent fa77bed commit 9cb9dec

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

npm-audit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h5 class="card-title">
5555
<div class="card">
5656
<div class="card-body">
5757
<h5 class="card-title">
58-
October 4th 2020, 9:30:46 am
58+
October 4th 2020, 9:30:57 am
5959
</h5>
6060
<p class="card-text">Last updated</p>
6161
</div>

src/Compiler/index.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ export class Compiler {
5353
* Cleans up the build directory
5454
*/
5555
private async cleanupBuildDirectory(outDir: string) {
56-
this.logger.info('cleaning up build directory', undefined, this.getRelativeUnixPath(outDir))
56+
this.getRelativeUnixPath(outDir)
57+
this.logger.info(
58+
`cleaning up ${this.logger.colors
59+
.dim()
60+
.yellow(`"./${this.getRelativeUnixPath(outDir)}"`)} directory`
61+
)
5762
await remove(outDir)
5863
}
5964

@@ -62,7 +67,9 @@ export class Compiler {
6267
*/
6368
private async copyAdonisRcFile(outDir: string) {
6469
this.logger.info(
65-
`copy (${this.logger.colors.yellow(`${RCFILE_NAME} => ${this.getRelativeUnixPath(outDir)}`)})`
70+
`copy { ${this.logger.colors
71+
.dim()
72+
.yellow(`${RCFILE_NAME} => ${this.getRelativeUnixPath(outDir)}`)} }`
6673
)
6774

6875
await outputJSON(
@@ -80,7 +87,11 @@ export class Compiler {
8087
*/
8188
private async copyMetaFiles(outDir: string, extraFiles?: string[]) {
8289
const metaFiles = this.rcFile.getMetaFilesGlob().concat(extraFiles || [])
83-
this.logger.info(`copy ${metaFiles.join(',')}`, undefined, this.getRelativeUnixPath(outDir))
90+
this.logger.info(
91+
`copy { ${this.logger.colors
92+
.dim()
93+
.yellow(`${metaFiles.join(',')} => ${this.getRelativeUnixPath(outDir)}`)} }`
94+
)
8495
await this.copyFiles(metaFiles, outDir)
8596
}
8697

0 commit comments

Comments
 (0)