A way to start immediately with your Reason TEA app, with zero configuration. See Bucklescript-Tea: https://github.com/OvermindDL1/bucklescript-tea
npm install -g bs-platform
- single global install- Clone this repo &
cd
into it rm -rf .git
- remove git link, this is now your projectnpm link bs-platform
- symbolic links to global bs-platformnpm install
- install all project & dev dependenciesnpm run dev
- build project & serve via local web server- Open browser and navigate to: http://localhost:8080/
- Edit
src/app.re | index.re
,public/index.html
- If auto-rebuild has no errors, browser will auto-reload
npm run dev
will:
- ... 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 thelib/
directory. - ... in parallel, run webpack's dev server at http://localhost:8080/, bundling bsb-produced and all other needed files in
public/
for serving.