generator-create-rsuite-component

[![npm](https://img.shields.io/npm/v/generator-create-rsuite.svg)](https://www.npmjs.com/package/generator-create-rsuite) # create-rsuite-component 快速搭建 Rsuite 组件开发环境


Keywords
yeoman-generator
License
ISC
Install
npm install generator-create-rsuite-component@1.1.6

Documentation

npm

create-rsuite-component

快速搭建 Rsuite 组件开发环境

用法

安装

# 确保全局安装
npm install -g yo
npm 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-pages
  • npm run release - 打包构建并发布到 npm
  • npm run test - 运行测试脚本
  • npm run coverage - 生成测试覆盖率报告

组件发布流程

组件发布流程