I've got some composer.json files that contain sections like this:
"repositories": [
{
"type": "vcs",
"url": "http://svn.example.com/libs/",
"package-path": "Package1"
},
{
"type": "vcs",
"url": "http://svn.example.com/libs/",
"package-path": "Package2"
},
{
"type": "vcs",
"url": "http://svn.example.com/libs/",
"package-path": "Package3"
}
],
"require": {
"ident/Package1": "~2.0",
"ident/Package2": "~3.0",
"ident/Package3": "~1.0"
}
That is, the individual packages are in subdirectories beneath the ../trunk directory in Subversion, instead of their own project directories with the standard ./[trunk,tags,branches] arrangement.
Is there a way to optimize this composer.json so as not to have to repeat the VCS type and url values when only the package-path changes? Assume that I cannot change the Subversion directory layout, but just about anything else would be possible.