diff --git a/readme/adding-to-project.md b/readme/adding-to-project.md index 1c73b9c74..34ab41f29 100644 --- a/readme/adding-to-project.md +++ b/readme/adding-to-project.md @@ -8,15 +8,20 @@ Adding BLT to an existing project can be much more complex than simply creating Prerequisites: 1. Ensure that your project directory structure is Acquia-cloud compatible by asserting that the Drupal root is in a top-level folder called `docroot`. -1. You must **already user Composer to manage site dependencies**. If you don't, please see [Using Composer to manage Drupal site dependencies](https://www.drupal.org/docs/develop/using-composer/using-composer-to-manage-drupal-site-dependencies) and modify your project accordingly. +1. You must **already user Composer to manage site dependencies**. If you don't, please see [Using Composer to manage Drupal site dependencies](https://www.drupal.org/docs/develop/using-composer/using-composer-to-manage-drupal-site-dependencies) and modify your project accordingly. 1. Ensure that your dependencies are all up to date via `composer update`. Assert that these updates do not break your project. To add BLT to a pre-existing Drupal project, do the following: 1. `cd` into your existing project directory. -1. Add BLT via composer: +2. Set Composer's `minimum-stability` to `dev` and `prefer-stable` to `true`: + + composer config minimum-stability dev + composer config prefer-stable true + +3. Add BLT via composer: composer require acquia/blt:^8.3 --no-update composer update -1. Continue following instructions for step 2 and beyond in [Creating a new project with BLT](../INSTALL.md#creating-a-new-project-with-blt). +4. Continue following instructions for step 2 and beyond in [Creating a new project with BLT](../INSTALL.md#creating-a-new-project-with-blt). diff --git a/src/Robo/Commands/Blt/UpdateCommand.php b/src/Robo/Commands/Blt/UpdateCommand.php index 3a3ada647..6d9846232 100644 --- a/src/Robo/Commands/Blt/UpdateCommand.php +++ b/src/Robo/Commands/Blt/UpdateCommand.php @@ -80,6 +80,7 @@ public function update() { * @return \Robo\Result */ public function addToProject() { + $this->updateRootProjectFiles(); $this->reInstallComposerPackages(); $this->displayArt(); $this->yell("BLT has been added to your project.");