Skip to content

Commit e65a174

Browse files
committed
refactor(app): 重构
1 parent 1cb8647 commit e65a174

File tree

8 files changed

+360
-30
lines changed

8 files changed

+360
-30
lines changed

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,26 @@
1-
# @codegenius/create-plugin
1+
# @codegenius/create-plugin
2+
3+
## 安装
4+
5+
```bash
6+
npm i @codegenius/create-plugin -D
7+
```
8+
9+
```javascript
10+
import { defineConfig } from "code-genius";
11+
import { createProjectInstaller } from "@codegenius/create-plugin";
12+
13+
export default defineConfig({
14+
plugins: [
15+
createProjectInstaller(),
16+
],
17+
});
18+
```
19+
20+
## 使用
21+
22+
### 命令模式
23+
24+
```bash
25+
codeg create
26+
```

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)