Skip to content

Commit a22f406

Browse files
README: Update composer documentation
Listing just Wikibase for the composer merge plugin is no longer recommended (e.g. if you’re using WikibaseLexeme then you’ll have a bad time if wmde/php-vuejs-templating is missing); compare also MediaWiki core change Ic09cbc4bb1 (commit 54e84b0a34). Saying “just copy file A to file B” actually simplifies our instructions here. Change-Id: I6666c85b2f58241222d8efc9ffcdc8a28795ef02
1 parent d3ba960 commit a22f406

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

README.md

+4-16
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,11 @@ Lower level documentation can be found on doc.wikimedia.org [here](https://doc.w
1717

1818
Wikibase depends on various [composer](http://getcomposer.org/) libraries.
1919

20-
Once you have Wikibase in your MediaWiki extensions directory, add the `composer.json` of Wikibase to `composer.local.json` at the root of your MediaWiki folder, as documented in [MediaWiki's Composer documentation](https://www.mediawiki.org/wiki/Composer#Using_composer-merge-plugin).
20+
Once you have Wikibase in your MediaWiki extensions directory, go to the root of your MediaWiki folder,
21+
and if `composer.local.json` does not yet exist there, copy `composer.local.json-sample` to `composer.local.json`
22+
(see [MediaWiki's Composer documentation](https://www.mediawiki.org/wiki/Composer#Using_composer-merge-plugin)).
2123

22-
It should now look similar to:
23-
```
24-
{
25-
"extra": {
26-
"merge-plugin": {
27-
"include": [
28-
"extensions/Wikibase/composer.json"
29-
]
30-
}
31-
}
32-
}
33-
```
34-
35-
36-
Then, in the root of your MediaWiki folder, run:
24+
Then run:
3725
```bash
3826
composer install
3927
```

0 commit comments

Comments
 (0)