See Composer template for Drupal projects as an example: https://github.com/drupal-composer/drupal-project

Comments

criz created an issue. See original summary.

  • criz committed 3c28864 on 8.x-1.x
    Issue #2698447 by criz: Add composer support
    
criz’s picture

Status: Active » Needs work

Todo: Document usage.

criz’s picture

Status: Needs work » Needs review

  • criz committed 3178764 on 8.x-1.x
    Issue #2698447 by criz: Composer support: Add documentation and improve...

  • criz committed f141138 on 8.x-1.x
    Issue #2698447 by criz: Add composer support: Update documentation.
    
criz’s picture

Update: Using "composer require drupal/shariff" to download the module doesn't work, as the Shariff library is defined as custom package now, that is not available outside of the shariff drupal module. I have no solution for this so far, as long the Shariff library is not available on a public packagist Composer repository.

But running "composer install" inside the shariff Drupal module is working as expected.

criz’s picture

Status: Needs review » Fixed

Moved the library folder location to Drupal root. Now downloading the library using composer_manager works.
See #2702275: Remove composer.json for misbehaving with Composer Manager.

Status: Fixed » Closed (fixed)

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