Description
It appears clib_package.c:clib_package_install
only supports repositories hosted on GitHub. Users should have the option to install packages hosted on any Git server. What's the core team's opinion on the following syntax for package.json
?
{
"name": "my-package",
"version": "0.1.0",
"url": "https://github.com/me/my-package.git",
"dependencies": {
"my-friends-package": {
"url": "https://my-friend@bitbucket.org/my-friend/my-friends-package.git",
"version": "0.1.0"
}
},
"install": "make install"
}
If a package declares both a url
and a repo
key, the url
key is preferred and a warning should be displayed. If only a repo
key is declared, then it's business as usual and the repo is assumed to be hosted on GitHub.
If my-friends-package
uses a hash, as it does above, the url
and version
keys are required. If it is declared using the current syntax of "my-friends-package": "0.1.0"
, then it behaves as it does now. Therefore these syntax changes are backwards compatible.
If there's interest in such a feature I'd love to work on it.
Metadata
Metadata
Assignees
Type
Projects
Status