add library install in composer.json

Created on 1 July 2024, 4 months ago
Updated 13 July 2024, 3 months ago

Problem/Motivation

composer require/install does not result inworking module

Steps to reproduce

Proposed resolution

add library install in composer.json

Remaining tasks

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium ikeigenwijs

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

Comments & Activities

  • Issue created by @ikeigenwijs
  • 🇳🇱Netherlands Martijn de Wit 🇳🇱 The Netherlands

    It's recommended to use asset-packagist to install JavaScript libraries. Like bower-asset or npm-asset
    Add the following to your composer.json file into the repositories section:

     {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    

    And extend the 'installer-path' section:

    "web/libraries/{$name}": [
            "type:drupal-library",
            "type:bower-asset",
            "type:npm-asset"
        ],

    And add a new 'installer-types' section next to the 'installer-path' in the 'extra' section:
    "installer-types": ["bower-asset", "npm-asset"],

  • 🇳🇱Netherlands Martijn de Wit 🇳🇱 The Netherlands
  • 🇷🇺Russia nikit

    It need to add more details to comment #2 add library install in composer.json Active and to the documentation of module:

    composer require oomphinc/composer-installers-extender
    // All actions as commented in #2
    composer require bower-asset/bootstrap-datepicker
    
Production build 0.71.5 2024