Sorry everyone, but we are no longer maintaining this project.
React 中文社区 React.js 版前端界面
正在初始化项目
- 完成 JSX 基本开发框架
- 梳理 Discourse API
- 制定 Actions, Store, Router 规范
- 完成顶层组件
- 组件细化
npm i
You need a static file server for the HTML files. Personally I suggest using Nginx.
Develop:
gulp html # regenerate index.html
webpack-dev-server --hot # enable live-reloading
Build (Pack and optimize js, reivision js and add entry in index.html
):
gulp build
Remove folder ./build
Runs the webpack build system just like in compile
but enables HMR and react hot-loader. The webpack dev server can be found at localhost:3000
.
Same as npm run dev
but enables --debug
flag automatically.
Same as npm run dev
but disables verbose debugging information.
Runs the Webpack build system with your current NODE_ENV and compiles the application to disk (~/build
).
Runs all tests for the application.
Similar to npm run test
, but only runs unit tests. In development mode this will run in watch mode and re-run individual test files when they change.
TODO
- If you want to discuss something or just need help, here is our gitter.im room.
- Have an idea? Found a bug? See how to contribute.