Elmion is a very tiny boilerplate for writing Elm apps, it includes only the bare minimum:
- Elm compiler
- SCSS compiler
- Dev server with live reloading
- Basic app structure
First, you need to install Elm globally:
npm install -g elm
You also have to install the onchange
module globally:
npm install -g onchange
Open the elmion directory and run:
npm install
Next, install the Elm packages:
elm package install
Running npm run watch
will compile the Elm app, compile the SCSS code, start a local server, load the app into your default browser and watch file changes.
Other tasks available:
npm run elm
will compile the Elm appnpm run scss
will compile the SCSS codenpm run build
will compile both the Elm and SCSS codenpm run watch:elm
will watch any changes to your Elm app and recompile the codenpm run watch:scss
will watch any changes to your SCSS code and recompile the codenpm run serve
will start the local dev server and reload when any changes are made to the build folder
- Add JS minification
- Add more tasks
MIT