- (webpack)可以使用 html-webpack-plugin 来生成 index.html
- (templete)sagas 中应该使用匿名函数, 防止 saga function 与 action function 重名.
- (templete)使用 debug 取代所有 console, 在 config 中配置 debug 参数 `localStorage.setItem('debug', 'cuz:*');`.

# CLI 改进和增强

- (CLI) 添加 cuz lint 命令用于检测代码风格
- (CLI) 所有参数, 可以通过一个 .cuzrc 文件进行默认配置, 该文件使用 json 方式
- (CLI) 使命令行支持 native 的构建, 支持 android 及 ios

# 提供 cuz-native 对应的 template

包括单元测试的解决方案

# 合并 cuz 与 cuz-native, 使 cuz-cli 支持其能在同一项目中进行构建.

使用以下方式进行平台的区分, 需要修改 webpack.

```
xxx.js                 // 兼容全平台
xxx.native.js          // 移动平台
xxx.native.android.js  // 移动平台中仅 android 平台
xxx.native.ios.js      // 移动平台中仅 ios 平台
xxx.desktop.js         // (noplan) 桌面平台
xxx.desktop.linux.js   // (noplan) 桌面平台中仅 linux 平台
xxx.desktop.mac.js     // (noplan) 桌面平台中仅 mac 平台
xxx.desktop.windows.js // (noplan) 桌面平台中仅 windows 平台
```

Eslint config 说明

```
  // 允许在 propTypes 中使用 any/array/object 作为检测对象
  "react/forbid-prop-types": 0,
  // 在函数中, 允许最后不进行 return, 而默认返回 undefined
  "array-callback-return": 0,
  // 允许使用 js 作为 React jsx 文件扩展名
  "react/jsx-filename-extension": 0,
  // 因内部已引用了组件库, 故在不在 package.json 中显示声明
  "import/no-extraneous-dependencies": 0,
  // 允许在 this 时候使用带下划线的变量, 用于设置 react bind 函数
  "no-underscore-dangle": ["error", { "allowAfterThis": true }],
```
