Component Installer
Component ID
1969830
Component name
Component Installer
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
545
Component created
Component changed
Component body
Component Installer allows installation of Components (third-party JavaScript and CSS packages) through Composer. This module facilitates its use for Drupal.
Dependencies
Usage
- Add the Components you want to your module's composer.json file:
{ "require": { "components/underscore": "*", "components/normalize.css": "*" } } - Make your module depend on component_installer in your .info file:
dependencies[] = component_installer - Use Composer Manager to help build and install the Composer dependencies.
- The Component's JavaScript is now available for use through require.js:
require(['underscore'], function (_) { // Underscore is now available. _.each([1, 2, 3], alert); }); - Any CSS that the Component provides is automatically loaded.
Available Components
See Packagist search for "component" for a list of available Components.
