drupal-scaffold icon indicating copy to clipboard operation
drupal-scaffold copied to clipboard

Allow destination paths for includes to be specified

Open rbayliss opened this issue 7 years ago • 1 comments

Hey there! I've got a use case where I want to install some files in slightly different locations than Drupal core uses. Right now there's no way to do that. What I'm proposing is that the includes key be allowed to specify an associative array of includes, where the key is the source, and the value is the destination. Eg:

{
  "extra": {
    "drupal-scaffold": {
      "includes": {
        "sites/example.settings.local.php": "sites/default/example.settings.local.php"
      },
    }
  }
}

rbayliss avatar Nov 29 '17 13:11 rbayliss

Hi @rbayliss,

thanks for the PR. Isn't it possible to use the "initial" setting for this purpose? This setting runs after the download and an copy the file to other paths.

webflo avatar Dec 24 '17 13:12 webflo