webksde / ddev-vscode-devcontainer-drupal-template

Drupal DDEV based development container with attached Visual Studio Code
23 stars 3 forks source link

composer.json default: Asset Packagist missing #96

Closed JPustkuchen closed 2 years ago

JPustkuchen commented 2 years ago

To be able to install Drupal modules using asset-packagist, the following parts are missing:

Details: http://lightning.acquia.com/blog/round-your-front-end-javascript-libraries-composer

In extra:

        "installer-types": [
            "npm-asset",
            "bower-asset"
        ],
        "installer-paths": {
            "web/core": [
                "type:drupal-core"
            ],
            "web/modules/contrib/{$name}": [
                "type:drupal-module"
            ],
            "web/modules/custom/{$name}": [
                "type:drupal-custom-module"
            ],
            "web/profiles/contrib/{$name}": [
                "type:drupal-profile"
            ],
            "web/themes/contrib/{$name}": [
                "type:drupal-theme"
            ],
            "web/themes/custom/{$name}": [
                "type:drupal-custom-theme"
            ],
            "web/libraries/{$name}": [
                "type:npm-asset",
                "type:bower-asset",
                "type:drupal-library"
            ],
            "drush/Commands/contrib/{$name}": [
                "type:drupal-drush"
            ],
            "web/libraries/ckeditor/plugins/{$name}": [
                "vendor:ckeditor-plugin"
            ]
        },

see "type:npm-asset" / "type:bower-asset"

In repositories:

        "repositories": [{
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        },
        [...]
joshsedl commented 2 years ago

This feature is implemented since https://github.com/webksde/ddev-vscode-devcontainer-drupal9-template/commit/433bbcb1d1b28c6ed1be178e0ccafe3a2d0f093f, just try using the newest version!

👍