Skip to content

Latest commit

 

History

History
executable file
·
26 lines (16 loc) · 1.05 KB

README.md

File metadata and controls

executable file
·
26 lines (16 loc) · 1.05 KB

Quick Start to Create Reason TEA App

A way to start immediately with your Reason TEA app, with zero configuration. See Bucklescript-Tea: https://github.com/OvermindDL1/bucklescript-tea

  1. npm install -g bs-platform - single global install
  2. Clone this repo & cd into it
  3. rm -rf .git - remove git link, this is now your project
  4. npm link bs-platform - symbolic links to global bs-platform
  5. npm install - install all project & dev dependencies
  6. npm run dev - build project & serve via local web server
  7. Open browser and navigate to: http://localhost:8080/
  8. Edit src/app.re | index.re, public/index.html
  9. If auto-rebuild has no errors, browser will auto-reload

Behind the scenes

npm run dev will:

  1. ... run bsb in watch mode, which will compile your Reason code (and incrementally recompile it when needed), generating .js and other compiler-info files in the lib/ directory.
  2. ... in parallel, run webpack's dev server at http://localhost:8080/, bundling bsb-produced and all other needed files in public/ for serving.