Add composer.libraries.json to the project (both branches)

Created on 24 April 2025, 1 day ago

Problem/Motivation

It seems like this project is missing the composer.libraries.json to aid the user in downloading the source files from the infusion site (still they need to compile the libraries though) and update the README.md file on how to use this file in your project.

Steps to reproduce

N/A

Proposed resolution

Create the composer.libraries.json for both branches (3.0.x and 2.0.x)

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

Feature request
Status

Active

Version

3.0

Component

Miscellaneous

Created by

🇨🇦Canada danrod Ottawa

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @danrod
  • Merge request !23Issue # 3520877: Added composer.libraries.json → (Merged) created by danrod
  • 🇨🇦Canada danrod Ottawa

    I added the library in the main composer.json file and I was able to download it with no issues:

    daniel@drupal:/var/www/html$ composer require "infusion/infusion"
    ./composer.json has been updated
    Running composer update infusion/infusion
    Loading composer repositories with package information
    Updating dependencies
    Lock file operations: 1 install, 0 updates, 0 removals
      - Locking infusion/infusion (4.8.0)
    Writing lock file
    Installing dependencies from lock file (including require-dev)
    Package operations: 1 install, 0 updates, 0 removals
      - Downloading infusion/infusion (4.8.0)
      - Installing infusion/infusion (4.8.0): Extracting archive
    Generating autoload files
    96 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    phpstan/extension-installer: Extensions installed
    > composer/composer: installed
    > composer/pcre: installed
    > mglaman/phpstan-drupal: installed
    > phpstan/phpstan-deprecation-rules: installed
    > phpstan/phpstan-phpunit: installed
    No security vulnerability advisories found.
    Using version ^4.8 for infusion/infusion
    
    
  • 🇨🇦Canada danrod Ottawa

    I'll merge it to the 3.0.x branch and open a new MR for the 2.0.x branch.

  • 🇨🇦Canada danrod Ottawa

    This MR worked as well:

    daniel@drupal:/var/www/html$ composer require "infusion/infusion"
    ./composer.json has been updated
    Running composer update infusion/infusion
    Loading composer repositories with package information
    Updating dependencies
    Lock file operations: 1 install, 0 updates, 0 removals
      - Locking infusion/infusion (4.8.0)
    Writing lock file
    Installing dependencies from lock file (including require-dev)
    Package operations: 1 install, 0 updates, 0 removals
      - Installing infusion/infusion (4.8.0): Extracting archive
    Generating autoload files
    94 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    phpstan/extension-installer: Extensions installed
    Found 8 security vulnerability advisories affecting 1 package.
    Run "composer audit" for a full list of advisories.
    Using version ^4.8 for infusion/infusion
    daniel@drupal:/var/www/html$ cd web/libraries/
    daniel@drupal:/var/www/html/web/libraries$ ls
    bootstrap-languages  infusion  jonthornton-jquery-timepicker  jquery-timepicker-addon  jquery-ui-timepicker
    daniel@drupal:/var/www/html/web/libraries$ cd ..
    daniel@drupal:/var/www/html/web$ cd ..
    daniel@drupal:/var/www/html$ cat composer.json | grep core
            "drupal/core-composer-scaffold": "^10.2",
            "drupal/core-dev": "^10.4",
            "drupal/core-project-message": "^10.2",
            "drupal/core-recommended": "^10.2",
                "drupal/core-composer-scaffold": true,
                "drupal/core-project-message": true,
                "web/core": [
                    "type:drupal-core"
            "drupal-core-project-message": {
                    "      composer remove drupal/core-project-message"
    daniel@drupal:/var/www/html$ 
    
    I'll merge this to the 2.0.x branch and update the <code>README.md

    files on both branches to indicate the user that they can download the library from this alternative way.

    For now I'll mark this as "Fixed" unless someone has any issues, I can re-open it of course.

Production build 0.71.5 2024