TypeScript makes Javascript and ES6 usable for larger teams and projects. ReasonML gives stronger advantages with less effort using a more mature and powerful type system based on formal logic. Using live reloading with a series of code transformations based on watches enables a fluid and articulate programming experience that feels more like automated theorem proving than TDD. This effect stems from the rapid incremental compilation of ReasonML.
Node.js, npm
and yarn
Consider a beverage while waiting for this command to finish.
yarn install
Three steps for live reloading your ReasonML using three processes.
- Run
yarn start
in one shell to compile the reason code. 2. Run
yarn bundle
in another shell to bundle the javascript code with Webpack. 3. Run
serve -s public
in another shell. (install serve if necessary)
-
Open (http://localhost:5000) in your browser.
-
Try changing one of the source files in
src/*.re
and see the live reloading.