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