drupal-composer / drupal-project

:rocket: Composer template for Drupal projects. Quick installation via "composer create-project drupal-composer/drupal-project"
GNU General Public License v2.0
1.57k stars 941 forks source link

Add installer paths for drupal custom modules and themes #646

Closed AlexSkrypnyk closed 6 months ago

AlexSkrypnyk commented 6 months ago

Add install paths for types drupal-custom-modules and drupal-custom-themes, otherwise they are installed by composer/installers in themes/custom/{$name} or modules/custom/{$name}.

Use case:

composer create-project drupal-composer/drupal-project:8.x-dev some-dir --no-interaction
composer require vendor/drupal-install-profile

See https://github.com/drupal-composer/drupal-project/pull/517

leymannx commented 6 months ago
      "web/modules/custom/{$name}": ["type:drupal-custom-module"],
      "web/profiles/custom/{$name}": ["type:drupal-custom-profile"],
      "web/themes/custom/{$name}": ["type:drupal-custom-theme"]