A little minimal boilerplate for Elm 0.19
This little boilerplate uses a local install of Elm 0.19 and Elm-Live. It is self-contained.
You need to have nodejs installed to use this boilerplate.
To install the dependencies, use:
$ npm install
$ ./dev.sh
Will launch elm-live.
$ ./build.sh
Will use elm-make --optimize
to build a production version of your source code. The code is built in the build/
folder.
$ ./local_elm.sh ...
You can call the script above passing arguments you'd normally pass to the elm
binary and it should just work.
All the bash scripts have equivalents in Windows Batch format.
dev.sh
→dev.bat
build.sh
→build.bat
local_elm.sh
→local_elm.bat
You can follow the same instructions as the commands above just replaing the script files with their batch equivalents.
There are many things to implement, on the roadmap I have:
- Add support for rollup
- Rebuild the debug version of
index.html
when the live-server detect a change.