Using drupal-project to craft your perfect start state

Hawkeye Tenderwolf

Senior Developer, Lullabot

Agenda:

1. drupal-project
2. Composer

3. You!

What is "drupal-project"?

Getting the tasty code

git clone

vs.

composer create-project

Alternatives to drupal-project

drupal/drupal

     is a

    no/no

Composer basics

anatomy of a composer file + basic customization

  • adding modules
  • SemVer(ish)
  • minimum stability (bit.ly/2EBMEHe)
  • libraries
  • scripts
  • "extra" config

Bonus: "Installers" + Components!

When you need code that only exists in the GitHubs...

  1. Use composer.json "repositories"
      - OR -
  2. Fork + add your own composer.json

Bonus: "Installers" + Asset Packagist!

When you need code that only exists in npm/bower...

Add the Asset-Packagist repo to composer.json "repositories"

Begin: FUN

Bring in all your favourite customizations:

  • settings.php + services.yml
  • .gitignore + .gitconfig
  • local dev (lando, ddev, ...)
  • hosts (pantheon, pl.sh, ...)
  • continuous integration
  • config management
  • module/core patches
  • front-end tooling

Install new site from configuration

Database dumps are SO drupal-7

"If an install profile contains a config/sync directory this will be used to install the site."

"Optional" config

use drupal console to sanitize the config export for use on other sites

Questions?

Using drupal-project to craft your perfect start state

By Hawkeye Tenderwolf

Using drupal-project to craft your perfect start state

  • 1,292