Skip to content

Commit 39a145e

Browse files
committed
Bootstrap: add a composer.json file to the project. No code relies on it (yet), and no vendor dir is checked in (yet). No autoloader is being used (yet). Taking this first step will hopefully encourage the perfectionists of our world to scrutinize each line.
To fiddle around with what it does, run `composer install` from the project root. If you do not have Composer installed: https://getcomposer.org/doc/00-intro.md#locally tl;dr for Mac/Homebrew users: `brew install composer` Classes from `wp-includes` and `wp-admin` are eligible for autoloading via `autoload.classmap`. Through a tornado of recent commits, many unsuitable files have been transitioned into a more acceptable state for autoloading: 1 file per class, no side effects. The file bootstrap in `wp-settings.php` can transition into `autoload.files`. This will be done with care and attention. See #36335. git-svn-id: https://develop.svn.wordpress.org/trunk@38384 602fd350-edb4-49c9-b593-d223f7449a82
1 parent db0e1ed commit 39a145e

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

composer.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "wordpress/wordpress",
3+
"description": "WordPress is web software you can use to create a beautiful website or blog.",
4+
"keywords": [
5+
"blog",
6+
"cms"
7+
],
8+
"type": "wordpress-core",
9+
"homepage": "https://wordpress.org/",
10+
"license": "GPL-2.0+",
11+
"authors": [
12+
{
13+
"name": "WordPress Community",
14+
"homepage": "https://wordpress.org/about/"
15+
}
16+
],
17+
"support": {
18+
"issues": "https://core.trac.wordpress.org/",
19+
"forum": "https://wordpress.org/support/",
20+
"wiki": "https://codex.wordpress.org/",
21+
"irc": "irc://irc.freenode.net/wordpress",
22+
"source": "https://core.trac.wordpress.org/browser"
23+
},
24+
"require": {
25+
"xrstf/composer-php52": "1.*"
26+
},
27+
"scripts": {
28+
"post-install-cmd": [
29+
"xrstf\\Composer52\\Generator::onPostInstallCmd"
30+
],
31+
"post-update-cmd": [
32+
"xrstf\\Composer52\\Generator::onPostInstallCmd"
33+
],
34+
"post-autoload-dump": [
35+
"xrstf\\Composer52\\Generator::onPostInstallCmd"
36+
]
37+
},
38+
"autoload": {
39+
"classmap": [
40+
"src/wp-includes/",
41+
"src/wp-admin/"
42+
]
43+
},
44+
"config": {
45+
"vendor-dir": "src/vendor"
46+
}
47+
}

0 commit comments

Comments
 (0)