Skip to content

Commit 39675c8

Browse files
committed
refactor(app): 重构
1 parent d20347c commit 39675c8

File tree

7 files changed

+341
-30
lines changed

7 files changed

+341
-30
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@
44

55
使用场景: 用于校验正在执行 `git commit` 时所提交的信息是否符合规范.
66

7+
## 安装
8+
9+
``` bash
10+
npm i @codegenius/verify-plugin -D
11+
```
12+
13+
```javascript
14+
import { defineConfig } from "code-genius";
15+
import { gitCommitVerifyInstaller } from "@codegenius/verify-plugin";
16+
17+
export default defineConfig({
18+
plugins: [
19+
gitCommitVerifyInstaller(),
20+
],
21+
});
22+
```
23+
24+
## 使用
25+
726
### 命令模式
827

928
```bash
@@ -13,7 +32,7 @@ codeg verify
1332
### API 模式
1433

1534
```typescript
16-
import { gitCommitVerify } from "code-genius";
35+
import { gitCommitVerify } from "@codegenius/verify-plugin";
1736

1837
(async () => {
1938
await gitCommitVerify();

codeg.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { defineConfig } from "code-genius";
2+
import { gitInitSimpleHooksInstaller } from "@codegenius/hooks-plugin";
3+
4+
export default defineConfig({
5+
plugins: [
6+
gitInitSimpleHooksInstaller(),
7+
],
8+
});

0 commit comments

Comments
 (0)