Add depedency install progress bar
This commit is contained in:
parent
4dbf86a328
commit
d111864bea
|
@ -59,12 +59,18 @@ class Install extends Command
|
||||||
|
|
||||||
|
|
||||||
$this->info('>> Installing and preparing dependencies...');
|
$this->info('>> Installing and preparing dependencies...');
|
||||||
|
$progress = $this->output->createProgressBar(3);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$composer->mustRun();
|
$composer->mustRun();
|
||||||
|
$progress->advance();
|
||||||
|
|
||||||
$npm->mustRun();
|
$npm->mustRun();
|
||||||
|
$progress->advance();
|
||||||
|
|
||||||
$npmBuild->mustRun();
|
$npmBuild->mustRun();
|
||||||
|
$progress->advance();
|
||||||
}
|
}
|
||||||
catch(ProcessFailedException $pfe)
|
catch(ProcessFailedException $pfe)
|
||||||
{
|
{
|
||||||
|
@ -73,6 +79,11 @@ class Install extends Command
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
$progress->finish();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$settings = [];
|
$settings = [];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue