Problem/Motivation

The composer:scaffold command is awkward. When using it, the full command is:

$ composer composer:scaffold

The sounds redundant.

Proposed resolution

Rename the composer:scaffold command to drupal:scaffold, and add scaffold as a command alias. This will allow both $ composer drupal:scaffold and $ composer scaffold.

Conflict with the existing drupal-composer/drupal-scaffold command should not be an issue, as any given site should use only one of the two plugins. To ensure this is always true, we could add a conflict statement to the drupal/core-composer-scaffold plugin's composer.json file.

Remaining tasks

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

The composer:scaffold command was renamed drupal:scaffold.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

greg.1.anderson created an issue. See original summary.

hussainweb’s picture

+1 to this. drupal:scaffold makes more sense than composer:scaffold.

hussainweb’s picture

Status: Active » Needs review
FileSize
2.06 KB

I'm making the change here.

I can see two change records relevant to scaffolding and neither of them need updating. The documentation also doesn't refer to this command.

Status: Needs review » Needs work

The last submitted patch, 3: 3086081-3.patch, failed testing. View results

hussainweb’s picture

Status: Needs work » Needs review
FileSize
3.9 KB
5.96 KB

Changing a few remaining references of composer:scaffold.

greg.1.anderson’s picture

Here's a patch to update some of the documentation as well.

johnwebdev’s picture

Status: Needs review » Reviewed & tested by the community

Name change makes sense. Nice with some additional documentation as well. 👏

greg.1.anderson’s picture

Issue summary: View changes
greg.1.anderson’s picture

Issue summary: View changes

Link to documentation update issue as follow-on task.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Talked to @greg.1.anderson about this a bit, mainly to enquire if this name made sense in the context of what e.g. Symfony, Laravel do and what people might expect.

He stated that this is mostly an internal thing (this is also covered by the docs) but in the event you need to run it you at least aren't repeating yourself yourself. ;)

Fair enough! Committed and pushed to 8.8.x. Thanks!

  • webchick committed f9ebeb1 on 8.8.x
    Issue #3086081 by hussainweb, greg.1.anderson: Name of composer:scaffold...

Status: Fixed » Closed (fixed)

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