Release pipeline for ReasonML / BuckleScript JavaScript bundles and rolling releases.
This repository runs every day to generate an exports.js file that can be loaded in the browser or Node, in order
to run the BuckleScript compiler in those environments.
To see the latest builds, go to the Actions page. In the "Artifacts" section, the latest bundle can be downloaded.
The main exports.js only allows to load modules from BuckleScript standard library. To be able to load modules from
3rd party libraries, there needs to be some precompilation of the library, and then generation of a file cmij.js
with the binary representation of the .cmi and .cmj files generated after compilation takes place.
To automate this process, the repository artifact includes a folder packages that contains a subfolder for each of the
packages listed in third_party_packages.json. The folder contains said cmij.js plus all the runtime .js files
that resulted from the compilation, so they can be used if needed to run the resulting code from compilation.
Example:
packages
βββ @glennsl
βΒ Β βββ bs-json
βΒ Β βββ Json.bs.js
βΒ Β βββ Json_decode.bs.js
βΒ Β βββ Json_encode.bs.js
βΒ Β βββ cmij.js
βββ reason-react
βββ React.js
βββ ReactDOMRe.js
βββ ReactDOMServerRe.js
βββ ReactEvent.js
βββ ReactEventRe.js
βββ ReasonReact.js
βββ ReasonReactCompat.js
βββ ReasonReactOptimizedCreateClass.js
βββ ReasonReactRouter.js
βββ cmij.js