-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(guide): 完善
InstallDependencies
文档
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
/> |