composer is taking over drupal 8

18
Composer is taking over Drupal 8

Upload: stephan-zeidler

Post on 10-Apr-2017

181 views

Category:

Software


3 download

TRANSCRIPT

Page 1: Composer is taking over Drupal 8

Composer is taking over Drupal 8

Page 2: Composer is taking over Drupal 8

See everything as a library!

Page 3: Composer is taking over Drupal 8

See everything as a library!

generic libraries hosted outside of the drupal ecosystem

attracts Drupal and non-drupal developers

Especially for 3rd-party integrations

drupal.module

drupal.module

Library 1

Library 2Drupal 7

Page 4: Composer is taking over Drupal 8

Advantages of the library approach

Page 5: Composer is taking over Drupal 8

Advantages of the library approach

Hop of the islandA bigger crowd to create sustainable

solutionsLess migration work on core upgradesmore agile development processeasy update with `composer update`

Page 6: Composer is taking over Drupal 8

Disadvantages of the library approach

Page 7: Composer is taking over Drupal 8

Disadvantages of the library approach

Code is spread outCentralization benefit of drupal.org

gets lostMultisite troubles and risks

Platform needs to be seen as a whole

Page 8: Composer is taking over Drupal 8

Composer in Real-Life

Page 9: Composer is taking over Drupal 8

Composer in Real-Life

Mailchimp module:Mailchimp libraryAddress moduleCommerceguys address libraryCommerceguys intl libraryCommerceguys zone librarySearch API Solrsolarium/solariumGeocoderwilldurand/geocoder

Page 10: Composer is taking over Drupal 8

The contrib composer workflow

Page 11: Composer is taking over Drupal 8

The contrib composer workflow

download your module as usual

always! resolve your composer dependencies before installing a new module

enable the module

Page 12: Composer is taking over Drupal 8

Composer Manager

Page 13: Composer is taking over Drupal 8

Composer Manager

Offers the `composer drupal-update` command

own report page in admin UIit acts globally on the platformavoid dependencies on that modulemight be deprecated in mid-term

Page 14: Composer is taking over Drupal 8

Composer and Ægir

Page 15: Composer is taking over Drupal 8

Composer and Ægir

currently no composer supportsite migrations will failWorkaround:

copy the site manuallyresolve dependenciesperform the migration

Page 16: Composer is taking over Drupal 8

Outside of the box

Page 17: Composer is taking over Drupal 8

Outside of the box

The composer workflow could extended even more

Using composer.json instead of makes`drush make` -> composer.json

composer create-project drupal-composer/drupal-project:~8.1 drupal --stability dev --no-interaction

`drush dl migrate_tools --dev`composer require drupal/migrate_plus 8.1.*@dev

Page 18: Composer is taking over Drupal 8

Any questions?