Support Composer merge for libraries

Created on 31 March 2021, about 4 years ago
Updated 19 November 2024, 5 months ago

Problem/Motivation

It would be great if this module supported using the Composer merge plugin to install the cropper.js library, similar to what CKEditor CodeMirror does for its library requirement.

  • Install the CKEditor-CodeMirror-Plugin library

    For Composer-managed Drupal installations, the recommended method is to use the Composer Merge Plugin and this module's composer.libraries.json file. From a Composer project root:

    1. Execute composer require wikimedia/composer-merge-plugin.

    2. Add the following to the extra section of the root composer.json file:

      "merge-plugin": {
          "include": [
              "{DOCROOT}/modules/contrib/ckeditor_codemirror/composer.libraries.json"
          ]
      },
      

      Note: Remember to replace {DOCROOT} with the appropriate root folder for the Drupal installation -- this is likely web or docroot.

    3. Execute composer install (or, in some cases, composer update --lock).

    That's it! Composer should install the CKEditor CodeMirror plugin in the appropriate place (/libraries/ckeditor_codemirror).

  • Feature request
    Status

    Postponed: needs info

    Version

    2.0

    Component

    Code

    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.

    Production build 0.71.5 2024