Quick and simple starter project to leverage bsb-native and Reason/OCaml in order to build an application.
yarn install # or npm installyarn build # or npm run buildyarn start # or npm startbytecode BackendBy default, this project will build using the native backend for bsb. To use the bytecode backend, update the build script in package.json to remove -backend native or update it to -backend bytecode. This will also require a change to the start script in package.json, which defaults to ./lib/bs/native/main.native, to be changed to ./lib/bs/bytecode/main.byte.
Note: The
bytecodebackend is already configured inbsconfig.json.
js BackendIn theory, this project will also support generating JavaScript code by configuring the js backend in bsconfig.json's entries property:
{
"entries": [
{
"backend": "js",
"main-module": "Main"
}
]
}This will ultimately depend on how this project is developed.
This starter project is licensed under the MIT License. See LICENSE for more details.