From 0568bd257f0985645d5f4bb10f9f37ad9e46d414 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Wed, 20 Jul 2022 17:08:11 +0100 Subject: [PATCH] Improves console output of install command (#172) --- composer.json | 7 ++++--- src/Console/InstallsApiStack.php | 2 +- src/Console/InstallsBladeStack.php | 4 ++-- src/Console/InstallsInertiaStacks.php | 8 ++++---- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index 37da99e32..65dc442a5 100644 --- a/composer.json +++ b/composer.json @@ -15,9 +15,10 @@ ], "require": { "php": "^8.0.2", - "illuminate/filesystem": "^9.0", - "illuminate/support": "^9.0", - "illuminate/validation": "^9.0" + "illuminate/console": "^9.21", + "illuminate/filesystem": "^9.21", + "illuminate/support": "^9.21", + "illuminate/validation": "^9.21" }, "conflict": { "laravel/framework": "<9.19.0" diff --git a/src/Console/InstallsApiStack.php b/src/Console/InstallsApiStack.php index 72cb442c3..501faec22 100644 --- a/src/Console/InstallsApiStack.php +++ b/src/Console/InstallsApiStack.php @@ -69,7 +69,7 @@ protected function installApiStack() // Cleaning... $this->removeScaffoldingUnnecessaryForApis(); - $this->info('Breeze scaffolding installed successfully.'); + $this->components->info('Breeze scaffolding installed successfully.'); } /** diff --git a/src/Console/InstallsBladeStack.php b/src/Console/InstallsBladeStack.php index 0f08a5eee..c8a8d27c3 100644 --- a/src/Console/InstallsBladeStack.php +++ b/src/Console/InstallsBladeStack.php @@ -66,7 +66,7 @@ protected function installBladeStack() copy(__DIR__.'/../../stubs/default/resources/css/app.css', resource_path('css/app.css')); copy(__DIR__.'/../../stubs/default/resources/js/app.js', resource_path('js/app.js')); - $this->info('Breeze scaffolding installed successfully.'); - $this->comment('Please execute the "npm install" && "npm run dev" commands to build your assets.'); + $this->components->info('Breeze scaffolding installed successfully.'); + $this->components->warn('Please execute the [npm install && npm run dev] commands to build your assets.'); } } diff --git a/src/Console/InstallsInertiaStacks.php b/src/Console/InstallsInertiaStacks.php index 7690b79aa..52cbd82a3 100644 --- a/src/Console/InstallsInertiaStacks.php +++ b/src/Console/InstallsInertiaStacks.php @@ -81,8 +81,8 @@ protected function installInertiaVueStack() $this->installInertiaVueSsrStack(); } - $this->info('Breeze scaffolding installed successfully.'); - $this->comment('Please execute the "npm install" && "npm run dev" commands to build your assets.'); + $this->components->info('Breeze scaffolding installed successfully.'); + $this->components->warn('Please execute the [npm install && npm run dev] commands to build your assets.'); } /** @@ -197,8 +197,8 @@ protected function installInertiaReactStack() $this->installInertiaReactSsrStack(); } - $this->info('Breeze scaffolding installed successfully.'); - $this->comment('Please execute the "npm install" && "npm run dev" commands to build your assets.'); + $this->components->info('Breeze scaffolding installed successfully.'); + $this->components->warn('Please execute the [npm install && npm run dev] commands to build your assets.'); } /**