Problem/Motivation
Drupal.org has a number of pages related to using Composer to manage your Drupal site. These are all for the most part listed in the Using Composer guide.
The existing pages advise the use of the third-party components from drupal-composer/drupal-project. Once Drupal 8.8.0 reaches a sufficiently complete state, these documents should be updated to recommend the use of the components provided by Drupal core.
Existing documentation pages on Drupal 8.8.0 Composer:
Proposed resolution
Note that the tools provided by Drupal 8.8.0 (Drupal Composer Scaffold et. al.) may be used to manage Drupal 8.7.x sites and earlier. We may therefore update the documentation to recommend the new technique as a general solution.
Remaining tasks
Determine when is the best time to recommend using the new components. Alpha? Beta? Not until 8.0.0 stable?
Comments
Comment #2
MixologicWe should also review INSTALL.txt as it recommends using git to start a site, for example
Comment #3
webchickAs far as the question in the issue summary, I would say "beta," at the latest. That's when we do a big push for community testing, and it'd be useful to have the "new and improved" recommended Composer steps in place by then so people could follow them and report any issues.
Comment #4
greg.1.anderson commentedWe should also discuss how to customize for alternate document roots, per https://github.com/drupal-composer/drupal-project/pull/527
Comment #5
webchickBumping priority of this, since it's quite important to do.
Comment #7
mile23Given scope and #3, this should target the 8.8.x branch.
Comment #8
mile23Our project message Composer plugin says this at the end of creating a project, and we should make sure it's correct and appropriate:
Comment #9
mile23The vendor hardening plugin docs have been updated, and need moderation: https://www.drupal.org/docs/develop/using-composer/using-drupals-vendor-...
Once that happens, we can add them as related to the template docs page: https://www.drupal.org/docs/develop/using-composer/starting-a-site-using...
Comment #10
guillaumeduveauHi all,
The doc is a bit confusing ATM:
Also, I can see why Drupal wants to maintain https://github.com/drupal/recommended-project and https://github.com/drupal/legacy-project.
What I can't understand is why they are officially recommended by Drupal. They don't even have a README.
https://github.com/drupal-composer/drupal-project is light years ahead and should be officially recommended in my opinion.
Comment #11
mile23Recommended-project and legacy-project emulate drupal-composer/drupal-project, to the point that drupal-project is essentially deprecated in favor of recommended-project.
Both of these project templates should have their own README, but they don't. The README is up one level, here: https://git.drupalcode.org/project/drupal/-/blob/8.8.x/composer/Template...
And here's an issue I just filed: #3144211: Add README.md to composer project templates
Recommended-project and legacy-project are recommended by Drupal because they are part of the Drupal core project, and are tested with core.
We should update https://www.drupal.org/docs/user_guide/en/install-composer.html to reflect recommended-project.
Comment #12
greg.1.anderson commentedThe drupal-composer/drupal-project project has adopted the installation method of drupal/recommended-project, and also adds additional components / examples beyond what is in core, e.g. Drush. I therefore would not say that it is deprecated; it is still being maintained, and is still an option for folks to use as a starting point if they wish.
I agree that this should be part of our messaging.
Comment #19
quietone commentedI skimmed the doc pages referred to in the issue summary and they have been updated. Therefor, closing this as outdated.
If that is incorrect re-open.