Add option to force scaffolding

Created on 2 February 2023, over 1 year ago

Problem/Motivation

Composer scaffolding plugin is an awesome tool, but there is a space for improvement.

We use this plugin to scaffold base configuration for Drupal and other project components, but at all times we commit scaffolded configuration. Once initially scaffolded it becomes part of the project. All packages that scaffolds config are configured to avoid ignoring in Git and avoid overriding.

This approach requires more manual work to keep an eye on updates in scaffolds, but avoids surprises that automated scaffolding could bring. Focus on stability and predictability.

What I would like to see possible is the ability to call composer drupal:scaffold --force - which would tell plugin to ignore configured in the packages "overwrite": false rules and override already scaffolded files. With this new option we are not changing default behaviour , but it gives a user more control and simplifies the process of updating scaffolded files - rather then checking every scaffolded file one by one, I could call composer drupal:scaffold --force and use standard IDE tools or git diff to see what changed , what I should bring in or revert.

✨ Feature request
Status

Active

Version

10.1 ✨

Component
ComposerΒ  β†’

Last updated about 19 hours ago

No maintainer
Created by

πŸ‡³πŸ‡ΏNew Zealand RoSk0 Wellington

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024