![]() |
||
---|---|---|
src | ||
static | ||
.envrc | ||
.gitignore | ||
.pre-commit-config.yaml | ||
README.md | ||
elm-cardano.json | ||
elm-git.json | ||
elm.json | ||
flake.lock | ||
flake.nix | ||
justfile | ||
package.json | ||
pnpm-lock.yaml |
README.md
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.
- Maybe elm2nix
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 ...