For Development
Gulp React Karma Mocha
To start do a clone of this repo and type in your terminal:
npm install
gulp dev
Then open the browser and type: localhost:8000
. This will start webpack development server with hot code reload for React components.
To run tests continuously (TDD) type in:
gulp tdd
To run tests just once you can use:
gulp test
To build for production run:
gulp product
计划:
阶段1:
- index.html 继续使用全局 js/jquery
- 分拆 css,至少包括 base/grid 和 组件 css
- 分拆出常用组件,然后做出页面 live
templatecomponent system
主要目的是:组件化、有 live system 可以专门 focus 在样式上
(希望CI出js/css,然后跑 screenshot test)
阶段2:
- 组件使用 inline-css
阶段3:
- jquery和react组合