mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 23:43:12 +00:00
Bower installer simplification
This commit is contained in:
@@ -62,21 +62,14 @@ class BowerInstall extends Command
|
|||||||
$output->writeln("<comment>OK</comment>");
|
$output->writeln("<comment>OK</comment>");
|
||||||
}
|
}
|
||||||
|
|
||||||
$success = false;
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$output->write("Installing assets...");
|
$output->write("Installing assets...");
|
||||||
$grunt->command('install-assets');
|
$grunt->command('install-assets');
|
||||||
$output->write(" <comment>OK</comment>");
|
$output->write(" <comment>OK</comment>");
|
||||||
$output->writeln("");
|
$output->writeln("");
|
||||||
$this->container['console']->get('assets:compile-less')->execute($input, $output);
|
$this->container['console']->get('assets:compile-less')->execute($input, $output);
|
||||||
$success = true;
|
|
||||||
} catch (ExecutionFailureException $e) {
|
} catch (ExecutionFailureException $e) {
|
||||||
|
throw new RuntimeException('Unable to install bower dependencies', $e->getCode(), $e);
|
||||||
}
|
|
||||||
|
|
||||||
if (!$success) {
|
|
||||||
throw new RuntimeException('Unable to install bower dependencies');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user