Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer Installers #1

Open
RobLoach opened this issue May 26, 2015 · 2 comments
Open

Composer Installers #1

RobLoach opened this issue May 26, 2015 · 2 comments

Comments

@RobLoach
Copy link

What is the difference between drupal-libraries-installer-plugin and Composer Installers?

{
    "type": "drupal-library",
    "require": {
        "composer/installers": "*"
     },
     "config": {
        "installer-paths": {
            "your/custom/someotherspecialpath/libraries{$name}/": ["type:drupal-library"]
        }
    }
}
@generalredneck
Copy link
Owner

For composer installers, you must have a package type of drupal-library for it to go to the directory of your choice. This plugin forgoes that formality and allows you to put any package you want into the libraries folder.

The alternative would to be to customize all your packages to have the type drupal-library

@richardbporter
Copy link

@RobLoach Doesn't composer/installers require that the package also require composer/installers for it to work? For example, this doesn't work because ckeditor does not require composer/installers.

"extra": {
    "installer-paths": {
        "drupal/sites/all/libraries/{$name}/": ["type:drupal-library", "ckeditor/ckeditor"]
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants