The composer_manager module allows Drupal module's to define their third party dependencies in the module's composer.json. It would be great to define one or both of the supported libraries to this module's composer.json. E.g., "league/commonmark": "^0.12",.

Otherwise, one would need to manually hack Drupal core's composer.json file.

CommentFileSizeAuthor
#2 define_8_x_dependencies-2628606-2.patch604 bytesgrasmash

Comments

grasmash created an issue. See original summary.

grasmash’s picture

Status: Active » Needs review
StatusFileSize
new604 bytes
harings_rob’s picture

Tested this and it was working fine.

Still we'll need to enable the second library as wel?

grasmash’s picture

Well, you only _need_ one of them, but it'd be fine to add both.

harings_rob’s picture

Status: Needs review » Reviewed & tested by the community

  • frjo committed 4645d38 on 8.x-1.x
    Issue #2628606 by grasmash: Define 8.x dependencies as composer.json...
frjo’s picture

Status: Reviewed & tested by the community » Fixed

Committed a patch that adds both libraries. Was hesitant to add this since users only will need one library so this will add unnecessary code. But I came to the conclusion that since Drupal 8 core already have over 12000 files it doesn't make mush of a difference.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.