Closed lessp closed 4 years ago
One solution is to have multiple json manifest and have multiple opam file. One disadvantage is they can be out of sync. I will create a script for reason tool to automatically generate opam file based on json packges.
@Et7f3 if you could create a tool that takes esy
json file and outputs stuff into the dune-project
file you're basically there. That shouldn't be too hard.
What content should be printed in dune-project ? are you referring to this ? https://dune.readthedocs.io/en/latest/opam.html#generating-opam-files
Yes, this is how I generate my opam files: https://github.com/reason-native-web/morph/blob/master/dune-project
This would also be useful for pesy
if you create it
So, a structure similar to: https://github.com/facebookexperimental/reason-native, and then generate .opam-files from the json-manifests alternatively via dune-project
?
Started in #9 which is now merged onto the master-branch. Still need to generate .opam
-files!
Dependencies have been separated, if we want to generate opam
-files, it's probably better to create a separate ticket for that. 🙂
As raised by @anmonteiro and @ulrikstrid, the should at least split its dependencies:
@anmonteiro
@ulrikstrid