To run these examples you need to have Elm installed on your machine.
brew install elm
Go to the elm installation page.
To run the project, execute the following from the project root:
elm reactor
Navigate to the provided url in the command output and then select the Main.elm
of the application you wish to run.
To compile the project you can use the elm make
command.
To compile the project to an index.html
with all necessary JS included, you can run the following from the root directory:
elm make src/<Application Name>/Main.elm
To compile the project to an index.js
, you can run the following from the root directory:
elm make src/<Application Name>/Main.elm --output index.js
To optimize the output JS you can add the --optimize
flag to any of the above elm make
commands.