# distribution-web
**Repository Path**: git-nishu/distribution-web
## Basic Information
- **Project Name**: distribution-web
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2019-06-20
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## Install dependencies
``` bash
npm install
```
## Usage
Run development environment
```bash
npm run dev
```
Run SIT environment
```bash
npm run sit
```
Run UAT environment
```bash
npm run uat
```
Run production build
```bash
npm run build
```
## Webpack config
```bash
build/config.js
```
---
## Project development standard
1、一个组件一个 JS 文件;
2、默认属性如:defaultProps、propTypes,采用 static 定义;
3、私有方法 _ 开头;
4、组件传递事件的属性名用 on 开头;
5、事件监听的方法都用 handle 开头;
6、渲染相关的方法都用 render 开头;
7、props 属性必须采用 prop-types 模块做验证;
8、组件划分为 Dumb 和 Smart 组件,Dumb 组件只负责渲染,可复用,Smart 组件负责业务逻辑处理,一般不要求可复用,具体根据业务逻辑来;
9、Dumb 和 Smart 组件约定分别放在 components 和 containers 文件夹中
10、CSS 采用 CSS MODULES 开发方式,每个组件对应一个 CSS 样式模块文件。
11、Actions 编写规范 [https://github.com/acdlite/flux-standard-action]