Skip to:
Content

Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#2712 closed task (fixed)

Add support for Composer

Reported by: netweb Owned by: johnjamesjacoby
Milestone: 2.6 Priority: normal
Severity: normal Version:
Component: General Keywords: close
Cc:

Description

This sounds like a good idea for bbPress also.

Via @DJPaul in #BuddyPress5928

I'd like to add Composer support to BuddyPress.


This would involve adding a JSON file into the root of /src/ (thus it would end up in a regular release, not just the dev SVN); it would contain pretty similar to info that our NPM package.json already has. Here's an example: https://github.com/markjaquith/WP-TLC-Transients/blob/master/composer.json


#WP23912 is a discussion about Composer support in WordPress core; the issues covered in that topic don't affect us, but that ticket's description is helpful to read.


If we did this, once we have a release (because we want to use Composer with release versions), we can tell https://packagist.org/ about our new Composer support, which would allow someone to install BuddyPress by integrating with their own project/own site's composer.json (specifying BP as a package requirement). The easiest way to demo this is to install Composer and run a command like "composer require hyyan/logo-controller".

See BuddyPress ticket for patch and comments

Change History (4)

#1 @netweb
4 years ago

  • Milestone changed from Awaiting Review to Under Consideration

#2 @johnjamesjacoby
3 years ago

  • Keywords close added; good-first-bug removed
  • Milestone changed from Under Consideration to 2.6
  • Owner set to johnjamesjacoby
  • Type changed from enhancement to task

Doing this shortly.

#3 @johnjamesjacoby
3 years ago

  • Resolution set to fixed
  • Status changed from new to closed

In 5935:

Add Composer support. Fixes #2712.

#4 @johnjamesjacoby
3 years ago

Also added to trunk of plugins.svn.

Note: See TracTickets for help on using tickets.