Skip to content

Commit af2a2f1

Browse files
committed
refactor(app): 重构
1 parent fbb4b9e commit af2a2f1

File tree

7 files changed

+340
-30
lines changed

7 files changed

+340
-30
lines changed

Diff for: README.md

+19-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@
44

55
使用场景: 用于检测当前项目的依赖项安装情况.
66

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

927
```bash
@@ -13,7 +31,7 @@ codeg depcheck
1331
### API 模式
1432

1533
```typescript
16-
import { npmDepCheck } from "code-genius";
34+
import { npmDepCheck } from "@codegenius/depcheck-plugin";
1735

1836
(async () => {
1937
await npmDepCheck();

Diff for: codeg.config.mjs

+8
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)