A simple tool to manage a private npm registry, to be used into development teams,t his tool uses nodejs consuming GITLAB api.
Suppose that we have to work with a dependency repository, in this case we propose dependency between gitlab repository within the same organization group. So we have a team that develops node packages and services that use it. But what is the problem, the number of services and packages that is difficult to control are growing more and more. This tool is an automatic solution to this.
The command output will draw a tree with the dependency relation.
> Scanning packages repositories...
> Downloading projects and parsing...
> Found #5 packages, #7 projects...
< Dependencies map >
├─ @damian/client-schema
│ ├─ onboarding-service
│ └─ clients-service
├─ @damian/cuil
│ └─ onboarding-service
├─ @damian/dynamo-lib
│ └─ onboarding-service
├─ @damian/op-connector
│ └─ onboarding-service
└─ @damian/sqs-lib
└─ Not found
Go to /config/default.json and change the configuration file.
{
"access":{
"host": "https://gitlab.com/api/v4",
"token": "xxxxxxx" <--- Gitlab personal token
},
"packages":"common", <--- Package to use
"destination":[
"bff-service",
"home-service"
],
"compareBranch":"develop", <--- The script will compare this branch in each repository.
"origin":{
"source":"group",
"name":"damian" <--- Your group name.
}
}
Run this command.
npm start