Skip to content

Zero-config quick start with ReasonML and Bucklescript-Tea

License

Notifications You must be signed in to change notification settings

desmond-dsouza/easy-reason-tea

Repository files navigation

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.

About

Zero-config quick start with ReasonML and Bucklescript-Tea

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published