https://bugzilla.wikimedia.org/show_bug.cgi?id=65188

--- Comment #3 from Ori Livneh <[email protected]> ---
There's a way to achieve this with composer:
https://getcomposer.org/doc/articles/custom-installers.md

There's a very good example here:
https://github.com/phpDocumentor/UnifiedAssetInstaller

My rough sense of how this would work is this:

MediaWiki's composer.json would specify a custom type and declare a dependency
on the composer/installers package:


    {
        "name": "mediawiki/core",
        "type": "mediawiki-instance",
        "require": {
            "composer/installers": "~1.0"
        }
    }

We'd implement a mediawiki-instance installer (like
<https://github.com/composer/installers/blob/master/src/Composer/Installers/MediaWikiInstaller.php>
is a mediawiki-plugin installer).

The installer would merge additional requirements from an extensions.json file,
if present.

A skeleton extensions.json would be checked into git but then added to
gitignore so that subsequent modifications don't dirty the repo state.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to