Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/support alternative npm registries #43

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bitkeeper
Copy link

@bitkeeper bitkeeper commented Jan 10, 2025

What:

Support different package scope then the @loupeteam by either using the @yourscope/packname prefix or supply an additional argument --scope=@yourscope.

Why:

Related to #8 and #37. Add support for other npm registries then the default loupeteam registry.
This make it possible to host your own package repo for LPM.

Usage

Add suport for other npm registries
Default the scope @loupeteam is added to each provide package name.
With this commit you can use also other or even mixed repositories to pull packages from.

Usage:

  • Add with the regular npm tools or manual a registry to your .npmrc file.
@foobar:registry=http://<myownrepo>/npm/foobar
  • Perform package operations like install, uninstall, info, view with either the scope as prefix name to the package or supply the additional --scope=<yourscope> to the LPM command.

examples:

LPM install @foobar/myulimatelib
LPM install --scope=@foobar myulimatelib

LPM commands not supported with other registries than the default @loupetam:

  • logout
  • login
  • viewall

If login is required for other registries use the npm tools instead.

Default the scope @loupeteam is added to each provide package name.
With this commit you can use also other or even mixed repositories to pull packages from.

Usage:
* Add with the regular npm tools or manual a registry to your .npmrc file.
```
@foobar:registry=http://<myownrepo>/npm/foobar
```
* Perform package operations like install, uninstall, info, view with either the scope as prefix name to the package or supply the additional `--scope=<yourscope>` to the LPM command.

examples:
```
LPM install @foobar/myulimatelib
LPM install --scope=@foobar myulimatelib
```
LPM commands not supported with other registries than the default @loupetam:
* logout
* login
* viewall
If login is required for other registries use the `npm` tools instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant