Skip to content

Feature/support alternative npm registries - #43

Open
bitkeeper wants to merge 2 commits into
loupeteam:mainfrom
bitkeeper:feature/support-alternative-npm-registries
Open

Feature/support alternative npm registries#43
bitkeeper wants to merge 2 commits into
loupeteam:mainfrom
bitkeeper:feature/support-alternative-npm-registries

Conversation

@bitkeeper

@bitkeeper bitkeeper commented Jan 10, 2025

Copy link
Copy Markdown

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