[wp-trac] [WordPress Trac] #23912: Add Composer package description
WordPress Trac
noreply at wordpress.org
Thu Oct 17 23:39:27 UTC 2013
#23912: Add Composer package description
------------------------------------+-----------------------------
Reporter: Rarst | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version: 3.5
Severity: trivial | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+-----------------------------
Comment (by TJNowell):
WP Core is, and is used as a dependency, be it via composer, svn external,
git submodule, or manually downloaded and put in place. It's a dependency
of every WordPress website in existence by virtue of being a WordPress
website. Exactly how 'modular' or 'legacy' that dependency is, and whether
it should use autoloaders, is irrelevant to this discussion.
[https://github.com/components/jquery/blob/master/composer.json Especially
when some composer dependencies contain no PHP of any kind, yet are
actively used]
Johns stuff works, I've ran test cases of deploying sites and keeping them
up to date, with no issues. I didn't have to declare that I required the
core installer either, it was pulled in automatically, and I had no issues
pulling in plugins either, especially with the help of wpackagist.org.
The biggest boilerplate I saw, was trying to pull in the standard
twentythirteen theme:
{{{
{
"name": "tomjn/examplesite",
"repositories": [
{
"type": "composer",
"url": "http://wpackagist.org"
},
{
"type": "package",
"package": {
"name": "wordpress/twentythirteen",
"version": "1.0",
"type": "wordpress-theme",
"source": {
"url": "http://themes.svn.wordpress.org/",
"type": "svn",
"reference": "twentythirteen/1.0/"
}
}
}
],
"require": {
"johnpbloch/wordpress": ">=3.6.1 at stable",
"wpackagist/mp6": ">=2.0",
"wordpress/twentythirteen": "*",
"wpackagist/spots": "*"
},
"minimum-stability": "dev"
}
}}}
Keep in mind I can also do this:
{{{
{
"name": "tomjn/examplesite-with-akismet",
"repositories": [
{
"type": "git",
"url": "http://somegithubrepository/with/the-
above/composer.json"
}
],
"require": {
"tomjn/examplesite": "*",
"wpackagist/akismet": "*"
},
"minimum-stability": "dev"
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23912#comment:58>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list