Skip to content

Instantly share code, notes, and snippets.

@hawkup
Last active December 3, 2016 08:03
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 hawkup/078240219b4fd322dca249fdde7bb4ea to your computer and use it in GitHub Desktop.
Save hawkup/078240219b4fd322dca249fdde7bb4ea to your computer and use it in GitHub Desktop.
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