create-rsuite-component
快速搭建 Rsuite 组件开发环境
用法
安装
# 确保全局安装 npm install -g yonpm install -g generator-create-rsuite-component
创建项目
# 创建并进入项目文件夹 mkdir your-project && cd your-project // 使用脚手架安装项目yo create-rsuite-component
运行项目
等待 npm install 安装完成后,执行下面命令,打开 localhost:3000
即可运行项目。
npm run dev
其他常用命令
npm run pages
- 发布 demo 到 github-pagesnpm run release
- 打包构建并发布到 npmnpm run test
- 运行测试脚本npm run coverage
- 生成测试覆盖率报告
组件发布流程
见 组件发布流程