Skip to content

generalredneck/drupal-libraries-installer-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

A Composer installer that allows you to move packages to the Libraries folder.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages