coderklion.blogg.se

Update drupal with composer
Update drupal with composer













The interesting (and sometimes problematic bit) is that webflo/drupal-core-require-dev doesn't specify any versions for non-development ("require") dependencies. What exactly is webflo/drupal-core-require-dev? Well, it is a "virtual" dependency - meaning it doesn't include any code, rather it just includes a composer.json file that specifies the specific versions of Drupal core development ("require-dev") dependencies that are used to run Drupal core tests. So, as most folks who start Drupal 8 projects using the recommended DCDP command listed in the README (composer create-project drupal-composer/drupal-project:8.x-dev some-dir -no-interaction), Composer is installing everything in the "require" and "require-dev" sections - including webflo/drupal-core-require-dev. If you take a look at DCDP, you'll notice that in the "require-dev" section, there is one entry: webflo/drupal-core-require-dev.

#Update drupal with composer install

Some backgroundįirst, let's level-set ourselves - when you run either "composer install" or "composer create-project" (which is actually calling "composer install" as well) without the "-no-dev" switch, Composer will install all dependencies listed in your composer.json file in both the "require" and "require-dev" sections (as well as dependencies of dependencies). My curiosity led me to this drupal-core-require-dev rabbit hole. DCDP was really my first real exposure to Composer, and the more I learned, the more I wanted to learn (as is often the case). If you're like me, you probably didn't give it much thought the first 20 or 30 times you used the template.Īfter a while though, I started to dig deeper into the details of DCDP, wanting to be able to understand exactly how it worked and what customizations I may want to make. If you build Drupal 8 sites using the Drupal Composer/Drupal Project Composer template (DCDP), then you've likely noticed the development dependency webflo/drupal-core-require-dev.













Update drupal with composer