npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-create-rsuite-app

v1.0.6

Published

[![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 为模板的脚手架,能让你快速

Downloads

9

Readme

npm

create-rsuite-app

create-rsuite-app 是用于快速创建基于 Rsuite + React + Redux + React-Router 为模板的脚手架,能让你快速搭建功能完善的后台框架。

在线 DEMO

用法

安装

# 确保全局安装
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 版本采用了 [email protected]。即保留了 react@15以后的 class 语法,又兼容了 低版本的 Rsuite 框架。 脚手架启用了 eslintlessreduxreact-routerreact-router-reduxreact-intlreact-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

Table 数据列表组件

脚手架封装了 TableView 组件,方便使用 Table 数据列表。具体参照 src/components/Users 模块下的用法。