Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
generator-create-rsuite-app
Advanced tools
[![npm](https://img.shields.io/npm/v/generator-create-rsuite-app.svg)](https://www.npmjs.com/package/generator-create-rsuite-app) # create-rsuite-app `create-rsuite-app` 是用于快速创建基于 [Rsuite](https://rsuitejs.com) + React + Redux + React-Router 为模板的脚手架,能让你快速
create-rsuite-app
是用于快速创建基于 Rsuite + React + Redux + React-Router 为模板的脚手架,能让你快速搭建功能完善的后台框架。
# 确保全局安装
npm install -g yo
npm install -g generator-create-rsuite-app
# 创建并进入项目文件夹
mkdir your-project && cd your-project
// 使用脚手架安装项目
yo create-rsuite-app
等待 npm install 安装完成后,执行下面命令,打开 localhost:3002
即可运行项目。
npm run dev
npm run build
由于当前 Rsuite 的 React 版本还未更新到 15以后,为了兼容性考虑,脚手架的 React 版本采用了 react@0.14.9。即保留了 react@15以后的 class 语法,又兼容了 低版本的 Rsuite 框架。 脚手架启用了
eslint
、less
、redux
、react-router
、react-router-redux
、react-intl
、react-redux
等依赖和配置。在使用该脚手架时,要确保对前面提到的知识有所了解。
脚手架的项目结构位于 generators/app/temlates
文件夹下,项目结构如下:
.
├── README.md
├── data // 存放本地 mock json 数据
│ ├── captcha.jpg
│ └── users.json
├── package.json
├── src
│ ├── actions // redux action
│ ├── components // react component
│ ├── constants // 常量定义
│ ├── containers // redux containers
│ ├── hoc // 高阶函数
│ ├── index.html // 首页
│ ├── index.js // 入口文件
│ ├── less // less 样式
│ ├── locales // 国际化 文件夹
│ ├── reducers // redux reducer
│ ├── routes // react-router 定义
│ └── utils
├── webpack // webpack 配置文件
│ ├── extractLess.js
│ ├── plugins.js
│ └── rules.js
├── webpack.config.js
└── webpack.dev.config.js
脚手架封装了 TableView
组件,方便使用 Table 数据列表。具体参照 src/components/Users
模块下的用法。
FAQs
[![npm](https://img.shields.io/npm/v/generator-create-rsuite-app.svg)](https://www.npmjs.com/package/generator-create-rsuite-app) # create-rsuite-app `create-rsuite-app` 是用于快速创建基于 [Rsuite](https://rsuitejs.com) + React + Redux + React-Router 为模板的脚手架,能让你快速
The npm package generator-create-rsuite-app receives a total of 7 weekly downloads. As such, generator-create-rsuite-app popularity was classified as not popular.
We found that generator-create-rsuite-app demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.