elm-ui-todomvc
elm-ui-todomvc copied to clipboard
The TodoMVC app written in Elm using elm-ui package, nice example for beginners.
TodoMVC in Elm - Try It!
This is a fork of the original TodoMVC that instead of elm/html and CSS relies on the mdgriffith/elm-ui package. All of the Elm code lives in src/Main.elm.
There also is a port handler set up in index.html to store the Elm application's state in localStorage on every update.
Build Instructions
Run the following command from the root of this project to build optimized output and compress using uglifyjs:
elm make src/Main.elm --optimize --output=elm.js
uglifyjs elm.js --compress 'pure_funcs="F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9",pure_getters,keep_fargs=false,unsafe_comps,unsafe' | uglifyjs --mangle --output=elm.min.js
Then open index.html in your browser!
Hacking
Install elm-live and run:
elm-live src/Main.elm --open -- --output=elm.min.js