Skip to content

Instantly share code, notes, and snippets.

@hawkup hawkup/Elm.md
Last active Dec 3, 2016

Embed
What would you like to do?
Start Elm

Prerequisite

node
npm

Install the Elm

npm install -g elm@0.18.0

Install live reload

npm install -g elm-live@2.6.0

Automatically formats Elm code to standard

Install elm-format on editor

Commands

elm-make
elm-package
elm-reactor or elm reactor

Start Project

elm-package install (for install core packages)

create elm file
example:
Test.elm

in the file
module Test exposing (..)

import Html

main =
    Html.text "hello"

Compile to JS

elm-make Test.elm --output=test.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.