Skip to content

Commit 6046bf2

Browse files
committed
Added instructions to README for installing with composer.
1 parent 104c56c commit 6046bf2

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,23 @@ Drupal Code Builder library.
33

44
## Installation
55

6-
1. Place this folder somewhere where Drush will locate it as a command. (See
7-
http://docs.drush.org/en/8.x/commands/#create-commandfiledrushinc for
8-
possible locations.)
9-
2. Do `composer require drupal-code-builder/drupal-code-builder` in the Drush
10-
installation folder.
11-
3. Do `drush cc drush` to rebuild Drush's cache of commands.
12-
4. Do `drush mb-download` in your Drupal site. This detects hooks, services, and
6+
There are two ways to install this command:
7+
8+
- Composer installation as a Drush extension
9+
1. Do `composer require drupal-code-builder/drupal-code-builder-drush:^8.0.0`
10+
to install this package and its dependencies. You will need your project to
11+
use drupal-composer/drupal-project, or have your composer.josn configured
12+
to place Drush extensions into drush/contrib.
13+
- Manual installation as Drush extension
14+
1. Place this somewhere Drush will locate it as a command, such as
15+
drush/contrib.
16+
2. Do `composer require drupal-code-builder/drupal-code-builder` to install
17+
the Drupal Coder Builder library.
18+
19+
Once this is installed:
20+
21+
1. Do `drush cc drush` to rebuild Drush's cache of commands.
22+
2. Do `drush mb-download` in your Drupal site. This detects hooks, services, and
1323
plugin types in your Drupal site's codebase and analyses them for use with
1424
Drupal Code Builder.
1525

0 commit comments

Comments
 (0)