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]: 集成nrm的功能? #12

Closed
kinfuy opened this issue Oct 21, 2022 · 1 comment
Closed

[Feature]: 集成nrm的功能? #12

kinfuy opened this issue Oct 21, 2022 · 1 comment

Comments

@kinfuy
Copy link
Owner

kinfuy commented Oct 21, 2022

What problem does this feature solve

当前nrm的最新版本nrm@1.2.5 不显示当前源地址Pana/nrm#111 过了一年也没有修复。

What does the proposed API look like

需要考虑当前命令区分,冲突问题,初期只考虑迁移常用的命令
- 方案1:子命令集
- gacm nrm add
- gacm nrm use xxx
- gacm nrm alias xxx xxx
- gacm nrm delete xxx
- gacm nrm ls

  • 方案2: gnrm 命令
    - gnrm use xxx
    - gnrm add xxx
    - gnrm alias xxx
    - gnrm ls xxx
    - gnrm use xxx
    -
@kinfuy
Copy link
Owner Author

kinfuy commented Oct 24, 2022

switch npm registry

## just like nvm

## View the registry list, and local registry will be automatically added
gnrm ls [-p xxxx]


## Switch npm registry default npm
gacm use xxx [-p yarn]

gacm use xxx [-p cnpm]


## Add registry--alias Optional  define registry alias
gacm add --name xxx --registry xxx [--alias xxx]

## Define registry alias
gacm alias xxxx xxxx

## delete registry
gacm delete xxx

@kinfuy kinfuy closed this as completed Oct 24, 2022
@kinfuy kinfuy pinned this issue Oct 26, 2022
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

No branches or pull requests

1 participant