Problem/Motivation

When developing custom modules there are several scenarios that require the developer to add a composer.json file to their module. Some of these scenarios depend upon whether the custom module is intended to be contributed back to the community as a project on drupal.org. Here are some reasons for creating a composer.json file

https://www.drupal.org/docs/develop/using-composer/add-a-composerjson-file

Steps to reproduce

Proposed resolution

Add a composer.json file

Remaining tasks

Approve and merge

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

trackleft2 created an issue. See original summary.

trackleft2’s picture

Status: Active » Needs review
joegraduate’s picture

Title: Add Composer.json file for better local development. » Add composer.json file for better local development.
Status: Needs review » Needs work

Added some review comments/suggestions to MR.

trackleft2’s picture

Status: Needs work » Needs review

I've applied all of the suggestions. Thanks!

joegraduate’s picture

Status: Needs review » Reviewed & tested by the community

LGTM. Thanks @trackleft2.

joegraduate’s picture

Status: Reviewed & tested by the community » Fixed

Merged.

Status: Fixed » Closed (fixed)

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

joegraduate’s picture

Category: Feature request » Task