As I was working to get this functionality in place, I was running into issues with the lack of metavariables like __dirname (as referenced here) that would prove useful for use with path.resolve and ...
"cadence-to-json" helps you make your cadence repositories expose scripts and transactions in a way that is consumable for use within JavaScript and Flow's Client Library (FCL). Many current examples ...