Skip to content

Commit

Permalink
feat (PreBuildCommand) Improve console log
Browse files Browse the repository at this point in the history
  • Loading branch information
Wtyd committed Jan 15, 2024
1 parent 0b4bf0a commit 798c9dd
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions app/Commands/PreBuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,15 @@ public function handle()
{
$this->phpVersion = $this->argument('phpVersion') ?? 'php7.1';

$this->title('Deleting dev dependencies');
$this->deleteDevDependencies();
$this->task(
' 1. <fg=yellow>Deleting dev dependencies</>',
$this->deleteDevDependencies()
);

$this->title('Updating prod dependencies');
$this->updateProdDependencies();
$this->task(
' <fg=yellow>2. Updating prod dependencies</>',
$this->updateProdDependencies()
);
}

public function deleteDevDependencies(): void
Expand Down

0 comments on commit 798c9dd

Please sign in to comment.