I wanted to exclude the .htaccess file from scaffoling like it is mentioned on the documentation from the Drupal scaffolding project at https://github.com/drupal-composer/drupal-scaffold. However, none of the options work in my composer.json file inside my project. Is there any "special" option regarding Lightning? I have seeen that drupal-scaffold is executed as a script.

Comments

Peter Majmesku created an issue. See original summary.

balsama’s picture

You should be able to use something like this in your root composer.json file to make drupal-scaffold ignore it:\

 "extra": {
   "drupal-scaffold": { 
       "source": "http://cgit.drupalcode.org/drupal/plain/{path}?h={version}", 
       "excludes": [ ".htaccess"]
       }
}
phenaproxima’s picture

Status: Active » Fixed

Since this is specific to Drupal Scaffold and not Lightning, I think we can mark this one fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

pierregermain’s picture

    "extra": {
        "drupal-scaffold": {
            "locations": {
                "web-root": "web/"
            },
            "file-mapping": {
                "[web-root]/.htaccess": false
            }
        },
  }