@nemo-cli/git 0.0.1-beta.4

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 ADDED
@@ -0,0 +1,44 @@
1
+ # `@nemo-cli/git`
2
+
3
+ > @nemo-cli/git Make pnpm Workspace Operation Easier
4
+
5
+ ## Install
6
+ ```
7
+ $ pnpm add @nemo-cli/git --global
8
+ ```
9
+
10
+ ## Usage
11
+
12
+ ```bash
13
+ # help
14
+ ng -h
15
+ # 子命令 help, 如: ng branch -h
16
+ ng <command> -h
17
+
18
+ # commit
19
+ ng commit
20
+
21
+ # git pull
22
+ ng pl
23
+ ng pull
24
+
25
+ # git push
26
+ ng ps
27
+ ng push
28
+
29
+ # git checkout, 执行自动 stash, 切换完毕 stash pop
30
+ ng co
31
+ ng checkout
32
+
33
+ # checkout new branch
34
+ # 如果只填写数字, 自动生成 feature/PRIME- , 如: 输入框输入 1500, 创建分支名为 feature/PRIME-1500
35
+ ng co -b
36
+
37
+ # 删除本地分支
38
+ ng branch delete
39
+ # 删除远程分支
40
+ ng branch delete -r
41
+
42
+ # 清理本地已合并分支
43
+ ng branch clean
44
+ ```
package/bin/index.mjs ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { run } from '../dist/index.js'
4
+
5
+ run()
@@ -0,0 +1,17 @@
1
+ import * as commander0 from "commander";
2
+
3
+ //#region src/index.d.ts
4
+ declare const pkg: {
5
+ name: string;
6
+ version: `${number}.${number}.${number}`;
7
+ keywords: string[];
8
+ license: string;
9
+ author: string;
10
+ description: string;
11
+ workspaces: string[] | Record<string, string[]>;
12
+ };
13
+ declare const init: () => commander0.Command;
14
+ declare const run: () => Promise<void>;
15
+ //#endregion
16
+ export { init, pkg, run };
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";;;cAea,GAAA;EAAA,IAAA;EAAA,OAAA;EAAA,QAAA;EAAA,OAAA;EAAA,MAAA;EAAA,WAAA;EAAA,UAAA,aAAoC,MAAA;AAAA;AAAA,cAEpC,IAAA,QAiBZ,UAAA,CAjBgB,OAAA;AAAA,cAmBJ,GAAA,QAAG,OAAA"}