Currently the composer.json in the repo is missing the name field (and a few others), which causes composer to fall over when trying to check it out (after adding
{ "type": "git", "url": "https://gerrit.wikimedia.org/g/mediawiki/extensions/TemplateStyles" } to the repositories list)
Something like
"name": "mediawiki/templatestyles",
"description": "Allows for loading sanitized CSS stylesheets from a template.",
"type": "mediawiki-extension",
"extra": {
"installer-name": "TemplateStyles"
},
...should work.
(even better if it were uploaded to packagist, then I wouldn't even have to add the repo to composer.json either)
For now (and in case anyone else comes across this issue), I am working around the issue with:
{
"type": "package",
"package": {
"name": "mediawiki/templatestyles",
"version": "0.99",
"extra": {
"installer-name": "TemplateStyles"
},
"type": "mediawiki-extension",
"source": {
"url": "https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateStyles",
"type": "git",
"reference": "REL1_35"
}
}
}(0.99 version number because it doesn't actually have a release at the moment)