I want to put https://github.com/timrwood/moment in my composer.json for ease of maintenance.
This is not an official batch project (of course, as it is not PHP), but it contains packages.jsonfor nodejs. Can I use this in my own composer.json?
I tried this, but this did not work:
{
"repositories": {
"timrwood/moment": {
"type": "git",
"url": "git://github.com/timrwood/moment.git"
}
}
}
It gives the error message "An invalid .json composer was found in any branch or git tag: //github.com/timrwood/moment.git, could not download the package from it."
And there is not enough version string to determine the version I want to use ...
Can anyone help here?
Or shouldn't I use a composer here because I'm mixing JS and PHP?