Skip to content

Instantly share code, notes, and snippets.

@laszlopandy
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laszlopandy/d77a1fe3150fe97f16fd to your computer and use it in GitHub Desktop.
Save laszlopandy/d77a1fe3150fe97f16fd to your computer and use it in GitHub Desktop.
Use cases for elm-make

Use cases of elm-make

  • elm make X.elm

    • install dependencies found in elm-package.json
    • compile X.elm, and all modules it depends on
    • write concatenated output to elm.js
  • elm make X.elm --output=x.js

    • write concatenated output to x.js
  • elm make X.elm --output=x.html

    • wrap JS output in HTML and write to x.html
  • elm make in empty directory

    • create default elm-package.json
    • download and compile core
  • elm make in existing library

    • download and install dependencies
    • compile all exposed modules from elm-package.json and their dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment