04/12
2015
Drupal Libraries Installer Plugin (For Composer), (*1)
The problem this installer tries to achieve is the ability to install libraries that Drupal modules use in the right place., (*2)
Common examples of modules that do this are:, (*3)
In order to use this plugin add this package to your "requires" section as well as any package you wish to install as a library:, (*4)
"require": { "drupal/drupal-library-installer-plugin": "~0.1", "ckeditor/ckeditor": "~4.4.4", }
Then you need to tell the installer plugin where you need your libraries installed. An example may be as follows, (*5)
"extra": { "drupal-libraries": { "library-directory": "www/sites/all/libraries", "libraries": [ { "name": "ckeditor", "package": "ckeditor/ckeditor" } ] } }
This will install the ckeditor library in the folder www/sites/all/libraries/ckeditor
. Easy nuff., (*6)