Skip to content

Commit

Permalink
docs(guide): 完善InstallDependencies文档
Browse files Browse the repository at this point in the history
  • Loading branch information
KuangPF committed Jul 16, 2023
1 parent 524f6f9 commit 432a9cd
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions example/docs/guide/builints-install-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
group: 内置组件
title: 依赖安装
order: 3
---

依赖安装组件用于展示脚本安装信息,内置 `npm``yarn`以及 `pnpm` 三种包管理器,安装脚本语句分别通过不用的 prop 参数传递:

- npm: 展示 `npm` 包管理器安装信息
- yarn: 展示 `yarn` 包管理器安装信息
- pnpm: 展示 `pnpm` 包管理器安装信息

```md
<InstallDependencies
npm='$ npm install dumi-theme-antd --save'
yarn='$ yarn add dumi-theme-antd'
pnpm='$ pnpm install dumi-theme-antd --save'
/>
```

<InstallDependencies
npm='$ npm install dumi-theme-antd --save'
yarn='$ yarn add dumi-theme-antd'
pnpm='$ pnpm install dumi-theme-antd --save'
/>

只展示部分包管理器:

```md
<InstallDependencies
npm='$ npm install'
yarn='$ yarn'
/>
```

<InstallDependencies
npm='$ npm install'
yarn='$ yarn'
/>

0 comments on commit 432a9cd

Please sign in to comment.