Add depedency install progress bar

This commit is contained in:
Miguel Nogueira 2020-07-09 05:01:50 +01:00
parent 4dbf86a328
commit d111864bea
1 changed files with 11 additions and 0 deletions

View File

@ -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 = [];