Skip to content

Commit

Permalink
Merge pull request #22 from beezen/dev
Browse files Browse the repository at this point in the history
feat: 新增 registry 命令管理本地镜像源
  • Loading branch information
beezen authored Jan 15, 2024
2 parents 8926325 + 23acef9 commit ca92e10
Show file tree
Hide file tree
Showing 20 changed files with 457 additions and 247 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy docs content to Pages
run-name: ${{ github.actor }} update docs

on:
# Runs on pushes targeting the default branch
push:
branches: ["master", "feature-docs"]
branches:
- master
pull_request:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

branches:
- master
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.9.0](https://github.com/beezen/nucm/compare/v1.8.9...v1.9.0) (2024-01-15)


### Features

* 新增 registry 命令管理本地镜像源 ([2accb87](https://github.com/beezen/nucm/commit/2accb873083e5e815d462dffbd2ada6d5fbf5227))

### [1.8.9](https://github.com/beezen/nucm/compare/v1.8.8...v1.8.9) (2024-01-12)


Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ NUCM 的全称为 NPM User Change Manager,是一款高效而直观的 NPM 账
4. [简单示例](#简单示例)
5. [注意事项](#注意事项)

## 详细文档

文档地址:[https://beezen.github.io/nucm/](https://beezen.github.io/nucm/)

## 学习资料

- [【教程】优秀前端人必须知道的 NPM 账号管理工具 - nucm](https://juejin.cn/post/7059224326674841636)
Expand Down Expand Up @@ -47,6 +51,7 @@ Commands:
localize <lang> 使用本地化语言
update [options] 更新版本
save 保存当前账号
registry|nrm <cmd...> 注册源配置
help [command] display help for command
```

Expand Down
5 changes: 5 additions & 0 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ The full name of NUCM is NPM User Change Manager, an efficient and intuitive too
4. [Simple Examples](#simple-examples)
5. [Considerations](#considerations)

## Document

Document address:[https://beezen.github.io/nucm/](https://beezen.github.io/nucm/)

## Learning Resources

- [【教程】优秀前端人必须知道的 NPM 账号管理工具 - nucm](https://juejin.cn/post/7059224326674841636)
Expand Down Expand Up @@ -46,6 +50,7 @@ Commands:
localize|language <lang> use localized languages
update [options] updated version
save Save the current account
registry|nrm <cmd...> Registration source configuration
help [command] display help for command
```

Expand Down
155 changes: 82 additions & 73 deletions coverage/clover.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1705029399659" clover="3.2.0">
<project timestamp="1705029399659" name="All files">
<metrics statements="136" coveredstatements="125" conditionals="75" coveredconditionals="58" methods="20" coveredmethods="20" elements="231" coveredelements="203" complexity="0" loc="136" ncloc="136" packages="4" files="5" classes="5"/>
<coverage generated="1705310205693" clover="3.2.0">
<project timestamp="1705310205693" name="All files">
<metrics statements="145" coveredstatements="124" conditionals="77" coveredconditionals="54" methods="23" coveredmethods="21" elements="245" coveredelements="199" complexity="0" loc="145" ncloc="145" packages="4" files="5" classes="5"/>
<package name="actions">
<metrics statements="55" coveredstatements="50" conditionals="27" coveredconditionals="18" methods="8" coveredmethods="8"/>
<file name="base.js" path="/Users/beezen/mine/github/nucm/src/actions/base.js">
Expand All @@ -11,10 +11,10 @@
<line num="11" count="2" type="stmt"/>
<line num="12" count="2" type="cond" truecount="0" falsecount="1"/>
<line num="13" count="4" type="stmt"/>
<line num="15" count="10" type="cond" truecount="1" falsecount="1"/>
<line num="18" count="10" type="cond" truecount="2" falsecount="0"/>
<line num="15" count="11" type="cond" truecount="1" falsecount="1"/>
<line num="18" count="11" type="cond" truecount="2" falsecount="0"/>
<line num="19" count="4" type="stmt"/>
<line num="21" count="6" type="stmt"/>
<line num="21" count="7" type="stmt"/>
<line num="25" count="2" type="stmt"/>
<line num="26" count="2" type="stmt"/>
<line num="29" count="2" type="cond" truecount="2" falsecount="0"/>
Expand Down Expand Up @@ -64,61 +64,66 @@
</file>
</package>
<package name="common">
<metrics statements="49" coveredstatements="44" conditionals="29" coveredconditionals="22" methods="7" coveredmethods="7"/>
<metrics statements="54" coveredstatements="43" conditionals="29" coveredconditionals="18" methods="9" coveredmethods="8"/>
<file name="env.js" path="/Users/beezen/mine/github/nucm/src/common/env.js">
<metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
<line num="1" count="2" type="stmt"/>
<line num="9" count="2" type="stmt"/>
</file>
<file name="index.js" path="/Users/beezen/mine/github/nucm/src/common/index.js">
<metrics statements="47" coveredstatements="42" conditionals="29" coveredconditionals="22" methods="7" coveredmethods="7"/>
<line num="13" count="2" type="stmt"/>
<metrics statements="52" coveredstatements="41" conditionals="29" coveredconditionals="18" methods="9" coveredmethods="8"/>
<line num="14" count="2" type="stmt"/>
<line num="15" count="2" type="stmt"/>
<line num="16" count="2" type="stmt"/>
<line num="24" count="8" type="cond" truecount="3" falsecount="1"/>
<line num="25" count="8" type="stmt"/>
<line num="30" count="8" type="stmt"/>
<line num="35" count="8" type="stmt"/>
<line num="17" count="2" type="stmt"/>
<line num="25" count="8" type="cond" truecount="3" falsecount="1"/>
<line num="26" count="8" type="stmt"/>
<line num="31" count="8" type="stmt"/>
<line num="36" count="8" type="stmt"/>
<line num="37" count="8" type="stmt"/>
<line num="38" count="8" type="cond" truecount="1" falsecount="1"/>
<line num="39" count="8" type="stmt"/>
<line num="41" count="8" type="stmt"/>
<line num="53" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="54" count="0" type="stmt"/>
<line num="38" count="8" type="stmt"/>
<line num="39" count="8" type="cond" truecount="1" falsecount="1"/>
<line num="40" count="8" type="stmt"/>
<line num="42" count="8" type="stmt"/>
<line num="54" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="55" count="0" type="stmt"/>
<line num="57" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="58" count="0" type="stmt"/>
<line num="64" count="0" type="stmt"/>
<line num="56" count="0" type="stmt"/>
<line num="58" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="59" count="0" type="stmt"/>
<line num="65" count="0" type="stmt"/>
<line num="67" count="1" type="stmt"/>
<line num="76" count="5" type="stmt"/>
<line num="77" count="5" type="cond" truecount="2" falsecount="0"/>
<line num="78" count="4" type="stmt"/>
<line num="66" count="0" type="stmt"/>
<line num="68" count="1" type="stmt"/>
<line num="77" count="5" type="stmt"/>
<line num="78" count="5" type="cond" truecount="2" falsecount="0"/>
<line num="79" count="4" type="stmt"/>
<line num="80" count="4" type="stmt"/>
<line num="81" count="4" type="stmt"/>
<line num="83" count="4" type="stmt"/>
<line num="84" count="4" type="cond" truecount="3" falsecount="1"/>
<line num="84" count="48" type="stmt"/>
<line num="85" count="48" type="cond" truecount="2" falsecount="0"/>
<line num="86" count="4" type="stmt"/>
<line num="89" count="4" type="stmt"/>
<line num="90" count="48" type="stmt"/>
<line num="91" count="48" type="cond" truecount="2" falsecount="0"/>
<line num="92" count="4" type="stmt"/>
<line num="95" count="4" type="stmt"/>
<line num="107" count="3" type="cond" truecount="2" falsecount="0"/>
<line num="108" count="1" type="stmt"/>
<line num="112" count="1" type="stmt"/>
<line num="114" count="2" type="stmt"/>
<line num="122" count="1" type="stmt"/>
<line num="123" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="124" count="1" type="stmt"/>
<line num="125" count="1" type="stmt"/>
<line num="126" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="128" count="1" type="stmt"/>
<line num="133" count="1" type="stmt"/>
<line num="134" count="1" type="cond" truecount="2" falsecount="0"/>
<line num="142" count="2" type="stmt"/>
<line num="101" count="3" type="cond" truecount="2" falsecount="0"/>
<line num="102" count="1" type="stmt"/>
<line num="103" count="1" type="stmt"/>
<line num="105" count="2" type="stmt"/>
<line num="113" count="1" type="stmt"/>
<line num="114" count="1" type="stmt"/>
<line num="126" count="0" type="cond" truecount="0" falsecount="2"/>
<line num="127" count="0" type="stmt"/>
<line num="128" count="0" type="cond" truecount="0" falsecount="2"/>
<line num="129" count="0" type="stmt"/>
<line num="130" count="0" type="stmt"/>
<line num="132" count="0" type="stmt"/>
<line num="142" count="1" type="stmt"/>
<line num="143" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="144" count="1" type="stmt"/>
<line num="145" count="1" type="stmt"/>
<line num="146" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="148" count="1" type="stmt"/>
<line num="153" count="1" type="stmt"/>
<line num="154" count="1" type="cond" truecount="2" falsecount="0"/>
<line num="162" count="2" type="stmt"/>
</file>
</package>
<package name="lang.default">
Expand All @@ -129,40 +134,44 @@
</file>
</package>
<package name="utils">
<metrics statements="31" coveredstatements="30" conditionals="19" coveredconditionals="18" methods="5" coveredmethods="5"/>
<metrics statements="35" coveredstatements="30" conditionals="21" coveredconditionals="18" methods="6" coveredmethods="5"/>
<file name="index.js" path="/Users/beezen/mine/github/nucm/src/utils/index.js">
<metrics statements="31" coveredstatements="30" conditionals="19" coveredconditionals="18" methods="5" coveredmethods="5"/>
<line num="11" count="13" type="stmt"/>
<line num="20" count="13" type="cond" truecount="2" falsecount="0"/>
<line num="21" count="12" type="cond" truecount="2" falsecount="0"/>
<line num="22" count="6" type="stmt"/>
<line num="32" count="7" type="stmt"/>
<line num="33" count="7" type="stmt"/>
<metrics statements="35" coveredstatements="30" conditionals="21" coveredconditionals="18" methods="6" coveredmethods="5"/>
<line num="13" count="14" type="stmt"/>
<line num="22" count="14" type="cond" truecount="2" falsecount="0"/>
<line num="23" count="13" type="cond" truecount="2" falsecount="0"/>
<line num="24" count="8" type="stmt"/>
<line num="34" count="7" type="stmt"/>
<line num="35" count="7" type="stmt"/>
<line num="36" count="7" type="stmt"/>
<line num="37" count="1" type="stmt"/>
<line num="39" count="7" type="stmt"/>
<line num="40" count="3" type="stmt"/>
<line num="43" count="7" type="stmt"/>
<line num="44" count="16" type="stmt"/>
<line num="45" count="16" type="stmt"/>
<line num="47" count="16" type="cond" truecount="2" falsecount="0"/>
<line num="48" count="3" type="stmt"/>
<line num="49" count="13" type="cond" truecount="2" falsecount="0"/>
<line num="50" count="2" type="stmt"/>
<line num="53" count="2" type="stmt"/>
<line num="59" count="1" type="stmt"/>
<line num="60" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="38" count="7" type="stmt"/>
<line num="39" count="1" type="stmt"/>
<line num="41" count="7" type="stmt"/>
<line num="42" count="3" type="stmt"/>
<line num="45" count="7" type="stmt"/>
<line num="46" count="16" type="stmt"/>
<line num="47" count="16" type="stmt"/>
<line num="49" count="16" type="cond" truecount="2" falsecount="0"/>
<line num="50" count="3" type="stmt"/>
<line num="51" count="13" type="cond" truecount="2" falsecount="0"/>
<line num="52" count="2" type="stmt"/>
<line num="55" count="2" type="stmt"/>
<line num="61" count="1" type="stmt"/>
<line num="63" count="0" type="stmt"/>
<line num="76" count="14" type="cond" truecount="2" falsecount="0"/>
<line num="77" count="14" type="stmt"/>
<line num="82" count="14" type="cond" truecount="2" falsecount="0"/>
<line num="83" count="14" type="stmt"/>
<line num="84" count="14" type="cond" truecount="2" falsecount="0"/>
<line num="85" count="14" type="cond" truecount="2" falsecount="0"/>
<line num="86" count="5" type="stmt"/>
<line num="88" count="9" type="stmt"/>
<line num="62" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="63" count="1" type="stmt"/>
<line num="65" count="0" type="stmt"/>
<line num="78" count="13" type="cond" truecount="2" falsecount="0"/>
<line num="79" count="13" type="stmt"/>
<line num="84" count="13" type="cond" truecount="2" falsecount="0"/>
<line num="85" count="13" type="stmt"/>
<line num="86" count="13" type="cond" truecount="2" falsecount="0"/>
<line num="87" count="13" type="cond" truecount="2" falsecount="0"/>
<line num="88" count="5" type="stmt"/>
<line num="90" count="8" type="stmt"/>
<line num="95" count="0" type="stmt"/>
<line num="96" count="0" type="stmt"/>
<line num="97" count="0" type="cond" truecount="0" falsecount="2"/>
<line num="98" count="0" type="stmt"/>
</file>
</package>
</project>
Expand Down
Loading

0 comments on commit ca92e10

Please sign in to comment.