Elm Starter Project
Install
Base
- Install NVM: https://github.com/creationix/nvm
- Install Elm:
npm install -g elm
Visual Studio Code
- Install
elm-format
:npm install -g elm-format
- Install VS Code from https://code.visualstudio.com/
- Add
code
command toPATH
for command line usageCmd-P
(Mac) orCtrl-P
(Linux): Launch Command Palette- Type
> Shell Command: Install code command in PATH
- Install Elm Extension
- From Command Line:
code --install-extension sbrink.elm
- From Web:
https://marketplace.visualstudio.com/items?itemName=sbrink.elm
- From Command Line:
- Restart VS Code
Use
Start Project
elm init
Develop
Note: elm reactor
doesn't work if you have HTML or JavaScript code. See https://github.com/rtfeldman/elm-spa-example#building for that.
./dev_env.sh