-
Notifications
You must be signed in to change notification settings - Fork 3
Repositories
Yann Stepienik edited this page Jul 20, 2019
·
4 revisions
Starting a GuPM repositories couldn't be simpler.
g repo bootstrap
This command will create a simple gupm_repo.json in your folder, which will be the entry point of any further deployement.
example of list file :
{
"packages" : {
"myPackage" : [ "0.0.1", "0.0.2", "0.0.3" ]
}
}
The packages will be contained in sub-folders (package/version/package-version.tgz)
The whole thing is managed by the g publish command so you don't have to.
Packages are installable from your repo with:
g install https:// yourrepo.io : package-name
You can publish your packages with the "g publish" command.
g publish
g publish java # sub repo "java"
g publish windows # sub repo "windows"
then a user can install a package from a sub-repo :
g plugin install https://azukaar.github.io/GuPM-official/repo:java/jsonParser
It is useful to use sub-repos for OS-specific dependencies. (g publish windows, then mac and linux). Once published, you can automatically let GuPM switch sub-repo based on OS name.
g plugin install https://azukaar.github.io/GuPM-official/repo:OS/node