Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soapdog/elm-miniplate
A little minimal boilerplate for Elm 0.19
https://github.com/soapdog/elm-miniplate
boilerplate elm
Last synced: 10 days ago
JSON representation
A little minimal boilerplate for Elm 0.19
- Host: GitHub
- URL: https://github.com/soapdog/elm-miniplate
- Owner: soapdog
- License: mit
- Created: 2018-08-28T17:27:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-28T21:33:35.000Z (over 6 years ago)
- Last Synced: 2024-04-15T03:28:29.692Z (8 months ago)
- Topics: boilerplate, elm
- Language: JavaScript
- Size: 72.3 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elm-miniplate
A little minimal boilerplate for Elm 0.19## Description
This little boilerplate uses a local install of Elm 0.19 and Elm-Live. It is self-contained.## Setup
You need to have [nodejs](https://nodejs.org) installed to use this boilerplate.To install the dependencies, use:
```
$ npm install
```## Development Server
```
$ ./dev.sh
```Will launch [elm-live](https://github.com/wking-io/elm-live/).
## Build For Production
```
$ ./build.sh
```Will use `elm-make --optimize` to build a production version of your source code. The code is built in the `build/` folder.
## Running the local Elm binary
```
$ ./local_elm.sh ...
```You can call the script above passing arguments you'd normally pass to the `elm` binary and it should just work.
## Windows 10 Support
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_.
## TODO
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.