Let’s say my source code has the following structure:
src
|-- bin
| |-- main.ml
|-- assets
|-- icons
| |-- pin.svg
|-- index.html
|-- manifest.json
I want dune to spit out an output dir in the default context like this:
_build
|-- default
|-- output
|-- manifest.json
|-- index.html
|-- static
|-- icons
| |-- pin.svg
|-- main.bc.js
In short, I want dune to rearrange the artifacts in the output dir, along with building the targets.
It seems like dune is the right tool for this, but I spent a lot of hours trying to make dune do this, but failed.
Am I correct to assume that dune cannot do this? Is dune’s only job to produce the build targets (main.bc.js
in this case)?
8 posts - 4 participants