Resuable features and Composer workflow

Created on 22 April 2018, almost 7 years ago
Updated 11 June 2024, 10 months ago

Since Composer is now the dependency manager for Drupal, I would like to get some advise how to reuse features.

For example, I have created a image gallery (content type, some fields and a view). For the display I have installed Display Suite (DS) so there is an extra module needed for this feature.

In the old days I would have copied the feature to a new site and would run "drush en " and all the dependencies were downloaded and installed automatically.

In the D8 Composer world, I need to run "composer require drupal/ds" and after that I can enable the feature.

Her is my question:
Is there a way that features can see or advise to update the composer.json so dependencies wil get installed automatically?

Thanks in advance

💬 Support request
Status

Active

Version

3.0

Component

Documentation

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024