Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1.05 KB

README.md

File metadata and controls

29 lines (23 loc) · 1.05 KB

Github Actions Netlify

Setup

  1. Install elm https://guide.elm-lang.org/install/elm.html
  2. Install nodejs https://nodejs.org/en/
  3. Try elm-repl to see that it works
  4. Install elm-format sudo npm install elm-format -g
  5. Install elm-test sudo npm install elm-test -g
  6. Install uglifyjs sudo npm install uglify-js -g
  7. Install IntelliJ Elm plugin
  8. Under Preference setup toolchain for Elm compiler, elm-format and elm-test

Run

  1. Run ./optimize.sh in terminal
  2. Open build/index.hmtl in browser

Run Tests

  1. elm-test

Development

  1. npx elm-test --watch
  2. To add dependencies elm install elm/random
  3. To have quick feedback loop by watching file for changes
    1. sudo npm install -g chokidar-cli
    2. chokidar "**/*.elm" -c "./optimize.sh"
    3. Reload build/index.hmtl in browser