ckeditor / ckeditor4-releases

Official distribution releases of CKEditor 4.
Other
521 stars 412 forks source link

Require `composer-installers` to give us a possibility to use it #72

Closed OnkelTem closed 7 years ago

OnkelTem commented 7 years ago

Currently your composer.json restricts ability to install it somewhere under website's root - instead it goes to vendor/ which makes no sense as vendor/ is not exposed to direct invocation and is located above the website's root.

Please add:

    "require": {
        "composer/installers": "~1.0"
    }

to let us install the library to specified locations using standard means:

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

See: https://getcomposer.org/doc/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md

OnkelTem commented 7 years ago

Sorry, ignore this issue. You won't get stuff going to some custom directory only by providing the dependency from composer/installers. As a matter of fact you don't need such a dependency. What you really need is oomphinc/composer-installers-extender composer plugin which allows for custom installation paths of composer packages:

$ composer require oomphinc/composer-installers-extender

then add this to the extra section of your composer.json:

  "extra": {
    "installer-types": [ "library" ],
    "installer-paths": {
      "path/to/custom/installation/path{$name}": [
        "ckeditor/ckeditor"
      ],
  }