From d111864beae09a5684d73cac2b46039269af2d35 Mon Sep 17 00:00:00 2001 From: Miguel Nogueira Date: Thu, 9 Jul 2020 05:01:50 +0100 Subject: [PATCH] Add depedency install progress bar --- app/Console/Commands/Install.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/Console/Commands/Install.php b/app/Console/Commands/Install.php index 0fc9d41..06329cb 100644 --- a/app/Console/Commands/Install.php +++ b/app/Console/Commands/Install.php @@ -59,12 +59,18 @@ class Install extends Command $this->info('>> Installing and preparing dependencies...'); + $progress = $this->output->createProgressBar(3); try { $composer->mustRun(); + $progress->advance(); + $npm->mustRun(); + $progress->advance(); + $npmBuild->mustRun(); + $progress->advance(); } catch(ProcessFailedException $pfe) { @@ -73,6 +79,11 @@ class Install extends Command return false; } + finally + { + $progress->finish(); + } + $settings = [];