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 &
cdinto 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
bsbin watch mode, which will compile your Reason code (and incrementally recompile it when needed), generating.jsand 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.