@icode-js/icode 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# icode-js v3
|
|
1
|
+
# @icode-js/icode v3
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`@icode-js/icode` 是一个面向 Git 日常操作的命令行工具,安装后可直接使用 `icode` 命令。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
目标:
|
|
6
6
|
|
|
7
7
|
- 更稳定地处理复杂 Git 场景
|
|
8
8
|
- 更好支持 `husky/git hooks` 校验链路
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
## 安装
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
npm i -g icode-js
|
|
15
|
+
npm i -g @icode-js/icode
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## 快速开始
|
|
@@ -127,7 +127,7 @@ icode push release test -m "feat: batch publish" -y # 默认本地 merge 推送
|
|
|
127
127
|
- `[targetBranch...]`:目标分支列表(可多个,空则默认当前分支)
|
|
128
128
|
- `-m, --message <msg>`:提交信息(未填会提示输入)
|
|
129
129
|
- `-y, --yes`:自动确认(跳过确认提示)
|
|
130
|
-
- `--local-merge
|
|
130
|
+
- `--local-merge`:显式声明使用本地 merge 模式(当前为默认行为,会切换分支并生成 merge commit)
|
|
131
131
|
- `--ai-commit`:push 前自动执行 AI commit
|
|
132
132
|
- `--ai-profile <name>`:指定 AI profile(用于 `--ai-commit`)
|
|
133
133
|
- `--pull-main`:提交前同步主分支到当前分支
|
|
@@ -339,8 +339,16 @@ node bin/icode.js help
|
|
|
339
339
|
node bin/icode.js undo
|
|
340
340
|
```
|
|
341
341
|
|
|
342
|
-
##
|
|
342
|
+
## 发布
|
|
343
343
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
344
|
+
当前 npm 包名:
|
|
345
|
+
|
|
346
|
+
```bash
|
|
347
|
+
@icode-js/icode
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
首次发布 scoped 包请显式指定公开访问权限:
|
|
351
|
+
|
|
352
|
+
```bash
|
|
353
|
+
npm publish --access public
|
|
354
|
+
```
|