Skip to content

Latest commit

 

History

History
60 lines (49 loc) · 2.77 KB

README-zh.md

File metadata and controls

60 lines (49 loc) · 2.77 KB

Common FE 模板 - 基于React的项目的一个starter boilerplate.

该模板包含:

JavaScript 类库 - React;
UI 类库 - React Bootstrap;
ES6 - ES6+;
Javascript 编译器 - Babel;
Application Architecture - Redux;
Module Bundler - webpack;
Javascript Test Runner - Karma;
Test Framework - Mocha;
Tests Assertion - Chai;
Test spies/stubs/mocks - Sinon;
Text Editors Configuration - Formatter & Linter & Snippets
Code Standard.

特性

开始入门

Directory Layout

.
├── /build/                     # webpack打包后的文件
├── /node_modules/              # node类库
├── /src/                       # 源代码
│   ├── /actions/               # Redux Actions
│   ├── /components/            # React展示(Presentantional)组件
│   ├── /containers/            # React容器(Container)组件
│   ├── /constants/             # 常量 (action 类型等)
│   ├── /core/                  # Core framework and utility functions
│   ├── /public/                # 静态资源文件
│   ├── /reducers/              # Redux reducers
│   ├── /index.js               # 客服端startup脚本
│   └── /server.js              # 服务端startup脚本
├── /test/                      # 测试代码
└── /karma.conf.js              # Karma test runner配置
└── /webpack.config.js          # webpack打包配置
└── package.json                # 第三方类库及Node脚本

学习更多