drupal / drupal-library-installer-plugin
Installs: 161 649
Dependents: 27
Suggesters: 0
Security: 0
Stars: 2
Watchers: 58
Forks: 6
Type:composer-plugin
Requires
- composer-plugin-api: ^1.0
This package is not auto-updated.
Last update: 2024-11-09 16:42:51 UTC
README
Drupal Libraries Installer Plugin (For Composer)
The problem this installer tries to achieve is the ability to install libraries that Drupal modules use in the right place.
Common examples of modules that do this are:
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:
"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
"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.