Skip to content
Snippets Groups Projects
Commit 6c2a30ba authored by luke.stewart's avatar luke.stewart
Browse files

Update composer install instructions for Drupal 8

parent c5bcacc7
No related branches found
No related tags found
1 merge request!37Draft: Update Drupal 8/9 composer installation instructions
......@@ -64,11 +64,10 @@ If `composer` is properly installed, then these example commands will add CiviCR
```
cd /var/www/d8.example.org
composer config extra.enable-patching true
composer require civicrm/civicrm-asset-plugin:'~1.1'
composer require civicrm/civicrm-{core,packages,drupal-8}:'~5.29'
composer require civicrm/civicrm-{core,packages,drupal-8}:'~5.42'
```
You should adjust the example path (`/var/www/d8.example.org`) and the example version (`~5.29`) as needed.
You should adjust the example path (`/var/www/d8.example.org`) and the example version (`~5.42`) as needed.
If you'd like more details to understand these commands or common errors, then please drill-down below.
......@@ -89,10 +88,11 @@ If you'd like more details to understand these commands or common errors, then p
| Package | Description |
| -- | -- |
| `civicrm/civicrm-asset-plugin` | A tool which automatically copies JS+CSS assets from CiviCRM to D8's `web/` folder |
| `civicrm/civicrm-core` | The primary CiviCRM codebase |
| `civicrm/civicrm-drupal-8` | The integration module for CiviCRM and D8 |
| `civicrm/civicrm-packages` | A collection of third-party/legacy packages used by CiviCRM |
| `civicrm/civicrm-asset-plugin` | A tool which automatically copies JS+CSS assets from CiviCRM to D8's `web/` folder - required by `civicrm/civicrm-drupal-8`|
??? info "More detail: Version constraints"
......@@ -102,11 +102,11 @@ If you'd like more details to understand these commands or common errors, then p
The following expression references the three packages and applies the same version-constraint to each:
```
civicrm/civicrm-{core,packages,drupal-8}:'~5.29'
civicrm/civicrm-{core,packages,drupal-8}:'~5.42'
```
The expression `~5.29` is a version-constraint. It means that composer will install *approximately* v`5.29`. It may
install a newer patch-release (e.g. `5.29.1`) or a newer minor-release (e.g. `5.31.0`). However, it will avoid
The expression `~5.42` is a version-constraint. It means that composer will install *approximately* v`5.29`. It may
install a newer patch-release (e.g. `5.42.1`) or a newer minor-release (e.g. `5.43.0`). However, it will avoid
major-releases (e.g. `6.0.0`).
Many `composer` tutorials rely on `composer` to automatically choose package-versions.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment