GitHub - hipertracker/react-es7: React + Flow types + routing + ES6 with experimental ES7 syntax + Reflux + Semantic-UI

1 min read Original article ↗

Example of React + Flow types + Reflux + routing + ES6 with experimental ES7 syntax + Semantic-UI

If for some reasons you can't or don' want to use Node for file processing, you can use hipertracker/react-babel. It uses only the browser but with AMD. All ES6 files are transpiled only once (during module loading), and cached.

Install

npm install -g broccoli-cli
npm install

Usage

  • fast processing in memory:

or

  • with watcher and generating files:
broccoli-timepiece dist
http-server dist/ -p 4200

Open http://localhost:4200

  • building files for production (minified, mangled and compressed):
BROCCOLI_ENV=production broccoli build dist

Test and code coverage:

Also code coverage in the browser:

Todo