Morgan-Stanley/morphir-elm/1.0.0

NOTE: the latest version is 3.0.0

Renamed to finos/morphir-elm. It is published under that name, and new versions come out there.

Versions published as Morgan-Stanley/morphir-elm still install under that name. 5 versions of 5 come from the new location (see their notes).

Rerouted (fork, verified). The original repository is gone. This copy comes from a fork that still has the tag. The Lamdera package server serves a copy recovered from https://github.com/maoo/morphir-elm (a fork).

What we checked: Rebuilt with git archive from commit 67b8474572c3 of https://github.com/maoo/morphir-elm (a fork) (zip prefix Morgan-Stanley-morphir-elm-fe8f521/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 df8df6e59d253fd78b98d91545093622e976e26f.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/Morgan-Stanley/morphir-elm/zipball/1.0.0/

morphir-elm

npm version

morphir-elm is a set of tools to work with Morphir in Elm. It currently provides these features:

  • Translate Elm sources to Morphir IR
  • Generate code from the Morphir IR

Installation

npm install -g morphir-elm

Usage

All the features can be accessed through sub-commands within the morphir-elm command:

morphir-elm [command]

Each command has different options which are detailed below:

Translate Elm sources to Morphir IR

This command reads Elm sources, translates to Morphir IR and outputs the IR into JSON.

morphir-elm make [options]

Important: The command requires a configuration file called morphir.json located in the project root directory with the following structure:

{
    "name": "package-name",
    "sourceDirectory": "src",
    "exposedModules": [
        "Foo",
        "Bar"
    ]
}

Options

OptionShorthandDescription
--project-dir <path>-pRoot directory of the project where morphir.json is located. (default: ".")
--output <path>-oTarget location where the Morphir IR will be sent. Defaults to STDOUT.

Generate code from the Morphir IR

Generate code from the Morphir IR

morphir-elm gen