Solidseb
Solidseb

Reputation: 11

Using Gitlab as Proget's feed with a unique place to store packages

Is it possible to use gitlab's package repository to feed our npm packages as well as public packages online. On proget it is possible to register common npm packages and my private npm packages under the same URL using a proxy. Is it possible to do the same with Gitlab so that pointing to gitlab's repository in the .npmrc would be enough to install all the dependencies ?

Upvotes: 1

Views: 192

Answers (1)

StephanB
StephanB

Reputation: 345

Yes, you can have a different registry for your personal packages and e.g. company packages. You can reference them by @my-gitlab-username/foo-package or @company/bar-package.

NPM packages hosted on npmjs.com which get installed by npm install <package> will always be resolved if the lookup on your provided Gitlab package registry fails. Usually you do not have to provide a separate proxy.

Multiple private/non-public registries can be targeted by using npm install @company/<package>. So there should be no issue in targeting multiple Proget and/or Gitlab npm registries at the same time.

Authentification is described here: https://stackoverflow.com/a/42648251/4236831

Upvotes: 0

Related Questions