Skip to main content
Deno 2 is finally here 🎉️
Learn more

Elm Scripts

Scripts for developing Elm programs!

Motivation

elm_scripts will be useful for a range of tasks:

  • generate the initial stuff for various kinds of Elm-projects.
  • serve Elm-programs during development.
  • build fully optimized Elm-programs for various environments.
  • run Elm-workers to generate files or process stdio.
  • play with Elm-code, fast and easily.

elm_scripts was written for a couple of reasons:

  • to build something useful with parser-combinators.
  • as an exploration of Deno and Typescript.
  • from disenchantment with Node.js, in particular NPM.

Warning

This project is under active development, which implies instability.

Semantic-versioning is applied strictly with zero stigma around major-version bumps.

Usage

elm_scripts is available as binary releases, or using Deno, which can be installed very easily like this.

elm_scripts relies on the Elm-compiler being installed and available.

A small api of internal functions is exported from /mod.ts in case this could be useful.

Usage from the terminal should be straight-forward:

# using a binary
elm_scripts help

# using deno
deno run https://deno.land/x/elm_scripts/mod.ts help

Contributions

Contributions are welcome as pull-requests or issues!

There is some useful scripts for development in the /script folder.

The structure of the project should be small and readable enough that it constitutes a new issue from you, if navigating it is problematic in any way.

Versioning is based on:

  • version in source/CmdLine.elm
  • defaultFlags in source/CmdLine/Compatible.elm