- Install elm https://guide.elm-lang.org/install/elm.html
- Install nodejs https://nodejs.org/en/
- Try
elm-repl
to see that it works - Install elm-format
sudo npm install elm-format -g
- Install elm-test
sudo npm install elm-test -g
- Install uglifyjs
sudo npm install uglify-js -g
- Install IntelliJ Elm plugin
- Under
Preference
setup toolchain for Elm compiler, elm-format and elm-test
- Run
./optimize.sh
in terminal - Open
build/index.hmtl
in browser
elm-test
npx elm-test --watch
- To add dependencies
elm install elm/random
- To have quick feedback loop by watching file for changes
sudo npm install -g chokidar-cli
chokidar "**/*.elm" -c "./optimize.sh"
- Reload
build/index.hmtl
in browser