[wp-trac] [WordPress Trac] #23912: Add Composer package description

WordPress Trac noreply at wordpress.org
Tue Aug 6 13:07:56 UTC 2013


#23912: Add Composer package description
------------------------------------+------------------
 Reporter:  Rarst                   |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  3.7
Component:  General                 |     Version:  3.5
 Severity:  trivial                 |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------

Comment (by johnpbloch):

 I put together a proof of concept for a core installer and put it up on
 github (https://github.com/johnpbloch/wordpress-core-installer). Using
 something similar to this would allow us to define a default subdirectory
 into which to install WordPress core. All we need to do is add a
 dependency to the core package for the custom installer and optionally set
 a custom default:

 {{{
 "require": {
     "johnpbloch/wordpress-core-installer": "~0.1"
 },
 "extra": {
     "wordpress-install-dir": "wp"
 }
 }}}

 If the default location is acceptable for a project, the composer file
 only needs to declare core as a dependency. The rest is handled
 transparently. Otherwise, it's not too much extra to declare a custom path
 for core:

 {{{
 "require": {
     "wordpress/wordpress": "~3.7"
 },
 "extra": {
     "wordpress-install-dir": "httpdocs/wp"
 }
 }}}

 And, of course, we would want to change the vendor to `wordpress`, etc.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/23912#comment:24>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list