Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

7.x 2.x drush at require

Andy Truong edited this page Jan 9, 2014 · 2 revisions

With Drush (5.x+) and at_base.module, we can tell Drush to download our dependencies (libraries, Drupal themes, Drupal modules).

First, define the config file:

# File: @my_module/config/require.yml

projects:
  pimple:
    type: library
    download:
      type: git
      url: https://github.com/fabpot/Pimple.git
      revision: dc03a407f20cbd4eaf55472875ad47ee96d921ea

  twig:
    type: library
    download:
      type: git
      url: https://github.com/fabpot/Twig.git
      branch: v1.15.0

  expression_language:
    type: library
    download:
      type: git
      url: https://github.com/symfony/expression-language.git
      branch: v2.4.0

Then we can download them fastly:

drush at_require my_module

Clone this wiki locally