Skip to content

Commit b4383f5

Browse files
committed
refactor(app): 重构
1 parent d6ff889 commit b4383f5

File tree

9 files changed

+344
-30
lines changed

9 files changed

+344
-30
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@
44

55
使用场景: 用于创建青睐 **CodeGenius** 模板的新的项目 (目前模板为 `vitejs` 内置, 主要在模拟功能, 模板后续更新后可用).
66

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

928
```bash

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)