Parent issue: #2337283: Add a composer.json file to every component

Problem/Motivation

Part of the parent parent issue: #1826054: [Meta] Expose Drupal Components outside of Drupal

Each of the \Drupal\Component\ namespaces need their own composer.json file, so that they can eventually be offered to the world as a library.

Proposed resolution

Add the LICENSE.txt, README.txt, TESTING.txt, and composer.json files from the template in this patch: https://www.drupal.org/node/2337283#comment-9706563

Verify the various dependencies of the component, so they can be included as requirements.

Add the component's directory to \Drupal\Tests\ComposerIntegrationTest:: getPaths().

Use composer validate in the component directory to make sure the composer.json file is valid.

Remaining tasks

User interface changes

API changes

CommentFileSizeAuthor
#2 interdiff.txt619 bytesmile23
#2 2474903_2.patch20.86 KBmile23
#1 2474903_1.patch20.26 KBmile23

Comments

mile23’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new20.26 KB

A patch.

mile23’s picture

Issue summary: View changes
StatusFileSize
new20.86 KB
new619 bytes

Added this component's directory to the composer.json validation test.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

I really like how this is looking now.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

The license matches Drupal's so no complications there. This is a non-code change and therefore permitted in beta. Committed 4be4222 and pushed to 8.0.x. Thanks!

  • alexpott committed 4be4222 on 8.0.x
    Issue #2474903 by Mile23: Add composer.json to \Drupal\Component\Gettext...

Status: Fixed » Closed (fixed)

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