Skip to content
React implemented frontend for react-china.org
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__
configs
docs
src
.babelrc
.editorconfig
.eslintignore
.eslintrc
.gitignore
.npmignore
.travis.yml
CONTRIBUTING.md
README.md
gulpfile.js
package.json

README.md

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 版前端界面

状态

正在初始化项目

计划

  • 完成 JSX 基本开发框架
  • 梳理 Discourse API
  • 制定 Actions, Store, Router 规范
  • 完成顶层组件
  • 组件细化

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)

You can’t perform that action at this time.