Skip to content

Commit

Permalink
Merge pull request #66 from fourkitchens/build-robust-order
Browse files Browse the repository at this point in the history
Move theme build to the end since it's least likely to succeed.
  • Loading branch information
rigoucr authored Jan 28, 2025
2 parents 58e4c8b + d6c3815 commit 8f48847
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Robo/Plugin/Commands/LocalBuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public function localBuild(ConsoleIO $io, $opts = ['no-db-import' => FALSE, 'no-
$tasks = $this->collectionBuilder($io);
$tasks->addTask($this->taskExec($this->getFireExecutable() . ' local:build:php'));
$tasks->addTask($this->taskExec($this->getFireExecutable() . ' local:build:js'));
$tasks->addTask($this->taskExec($this->getFireExecutable() . ' local:build:theme'));
if (!$opts['no-db-import']) {
if (!$opts['no-db-download']) {
$tasks->addTask($this->taskExec($this->getFireExecutable() . ' local:get-db'));
Expand All @@ -38,6 +37,10 @@ public function localBuild(ConsoleIO $io, $opts = ['no-db-import' => FALSE, 'no-
// Deploy Drush Commands.
$tasks->addTask($this->taskExec($this->getFireExecutable() . ' local:build:drush-commands'));

// Building the theme is least likely to succeed, so we run it last.
// If it fails, at least you'll have a functional local install.
$tasks->addTask($this->taskExec($this->getFireExecutable() . ' local:build:theme'));

return $tasks;
}
}

0 comments on commit 8f48847

Please sign in to comment.