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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | interdiff.txt | 619 bytes | mile23 |
| #2 | 2474903_2.patch | 20.86 KB | mile23 |
| #1 | 2474903_1.patch | 20.26 KB | mile23 |
Comments
Comment #1
mile23A patch.
Comment #2
mile23Added this component's directory to the composer.json validation test.
Comment #3
dawehnerI really like how this is looking now.
Comment #4
alexpottThe 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!