jinyuan-react-antd-ui
v1.0.17
Published
## 创建项目 *初始化一个文档模式的组件库开发脚手架* ``` npx @umijs/create-dumi-lib /* or */ yarn create @umijs/dumi-lib ```
Downloads
28
Readme
dumi 建立组件库
创建项目
初始化一个文档模式的组件库开发脚手架
npx @umijs/create-dumi-lib
/* or */
yarn create @umijs/dumi-lib
初始化一个站点模式的组件库开发脚手架
npx @umijs/create-dumi-lib --site
/* or */
yarn create @umijs/dumi-lib --site
修改package.json
"scripts": {
- "start": "dumi dev",
+ "dev": "dumi dev",
},
安装antd
yarn add antd
修改配置文件
- 创建根目录创建一个config文件夹
- 把.umirc.ts文件剪切到config文件夹
- 把.umirc.ts文件名字改成config.ts