-
-
Notifications
You must be signed in to change notification settings - Fork 645
Use of Composer (instead of Drush Make) for building Drupal site #506
Comments
I would like to do this soon, yes; just waiting for things to standardize a little more. I know there is a more-or-less 'official' workflow now (see below references), but there is still differing opinions on best practices for some of the sticky bits, like versioning, patches, extra libraries (non-PHP), etc. so I'm not sure if this will be a feature by Drupal VM 3.0.0 or not. References: The full workflow is currently supported, but not automated by, Drupal VM. |
This is also something that I'm considering using as an excuse to switch things to my |
I noticed this drupal.org issue for direct Composer support that might be worth following: |
Good news, Jeff. Thanks for such a great resource. Slightly off-topic: wondering whether the addition of Drupal Console is also something worth exploring in the context of this project? |
@minorscience - Drupal Console has been part of Drupal VM for some time :) — just make sure it's uncommented in |
@geerlingguy but then it's only a documentation issue right? Would be cool to get the building blocks in for a 3.0.0 release as I assume switching to Edit: or are you considering using composer as the default instead of drush make? |
👍 for We're looking to push this role to galaxy when stable, which currently supports composer installations. |
I'm considering composer as the default, and drush make as an alternative option. It's definitely going to be the future of Drupal 8 site building, and the main/only reason to keep it around is for D7 projects, imo. |
+1 to this. Just started finding drupal projects that drush cannot install correctly. |
https://github.com/MTechLLC/d8_starter is composer driven base d8 starter site that has ideas to consider. |
@geerlingguy drupal console has been fixed for some time - it's used again in the provisioning of the systems I look after, so feel free to throw it out there again! |
I've been using a 100% composer driven workflow with drupalvm for the past 3 weeks. I don't know that anything needs to change in the project. Some of the workflow to run a drush make need to be disabled. And a post provision script to run composer install + drush si config_install (I'm using config installer module to install from config stored on the filesystem on up from the webroot.) |
@heddn - For Drupal VM's purposes, the main change would be to use a |
@geerlingguy are you thinking about bringing in |
@oxyc - Long term I'd like to use So if it's quicker, I'm happy to just changeover things in Drupal VM to support a fully-composer-based-workflow. |
Especially if you want to tackle it, and earn yet another free beer if I ever get to meet you :D |
Hold off on 3.1.0 a bit and I'll try to get a PR for tomorrow hopefully. With BLT and d8 in mind it would be nice to default to a composer based install instead. I've scheduled 2018 for traveling around the US so I'll stop by for a few beers then :D |
@oxyc -- here's a starting point -- https://github.com/beetboxvm/beetbox/blob/master/provisioning/ansible/roles/beetbox-drupal/tasks/build-composer.yml but +1 for a galaxy role that we could share. |
@thom8 - That's the end goal, but initial goal I think will be to just keep spreading adoption of composer.json for Drupal 8 site builds. I'm finally using it for a large project now, and besides a few growing pains, it's great! |
Drupal 9 might only be a |
@thom8 - That would be awesome—by that time, I hope our greatest hurdle to adoption will be overcoming the Mars-->Earth latency in composer-based dependency downloads. |
@geerlingguy what do you think about using Would be nice if it worked like:
Might be a bit tricky due to the docroot path being different between drupal-project and makefiles. I'll play around a bit. Other option is to provide an |
+1 for |
Either way may be workable... I haven't tried drupal-project itself before, just |
Issue #506: Add support for composer based site builds
All right, the main supporting code has been merged, and I've opened up a follow-up issue to discuss defaulting to Composer at some point in the future: #699 |
Just getting started with Drupal 8 and seeing that quite a few folks are using Composer to build. Any plans to include Composer support as a build option, instead of make?
The text was updated successfully, but these errors were encountered: