tx-elm/README.md

653 B

Tx elm

Subbit.xyz tx builder using elm-cardano

Setup

This repo is using nix flakes.

The "right" way to package elm with nix is not known to the author.

CLi

The way elm works seems to be rather sneaky. It adds Elm to the global js scope. In typical use this is then picked up by some script embedded in the page :

  var app = Elm.Main.init({ node: document.getElementById("elm"), flags : ... });

Instead we want to call it with node. Appending the output file with

this.Elm.Cli.init({ flags: process.argv });

Does the job. But there must be a better way ...