Skip to content

Latest commit

 

History

History
69 lines (46 loc) · 2.27 KB

README.md

File metadata and controls

69 lines (46 loc) · 2.27 KB

react-es7

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:
broccoli serve

or

npm start
  • 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:

$ npm test

Also code coverage in the browser:

npm run coverage

Todo