Using drupal-project to craft your perfect start state

Hawkeye Tenderwolf (aka Derek DeRaps)

Senior Architect, Kalamuna

Video recording, here!

Kalamuna

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

Configuration Installer profile

Database dumps are SO drupal-7

Install profile project to be deprecated after this core change:

https://www.drupal.org/project/drupal/issues/2788777

"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

  • 181
Loading comments...

More from Hawkeye Tenderwolf