react-china / forum-frontend

React implemented frontend for react-china.org
60 stars 6 forks source link

Unmaintained

Sorry everyone, but we are no longer maintaining this project.

React China new Forum Frontend

Build Status

Gitter chat GitHub license

dependencies devDependency peerDependency


React 中文社区 React.js 版前端界面

状态

正在初始化项目

计划

Develop

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

Usage

npm run clean

Remove folder ./build

npm run dev

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.

npm run dev:debug

Same as npm run dev but enables --debug flag automatically.

npm run dev:quiet

Same as npm run dev but disables verbose debugging information.

npm run compile

Runs the Webpack build system with your current NODE_ENV and compiles the application to disk (~/build).

npm run test

Runs all tests for the application.

npm run test:unit

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.

npm run test:e2e

TODO

Contribution

License

MIT (http://www.opensource.org/licenses/mit-license.php)