Development environment for writing Elm apps.
Based on the amazing work of javascript-development-environment.
- Development Server with hot reloading.
- Optimised bundling and minification for the production.
First let's install dependencies
- If you don't have install node.js.
- Also you will need yarn package manager.
- And of course elm environment.
After that
- Clone this repo in a new project:
git clone https://github.com/grrinchas/dg-elm-starter-kit my-elm-project
- Re-initialise as your own repo:
cd my-elm-project
rm -rf .git # on Windows: rmdir .git /s /q
git init
- Install all
JavaScript
dependencies:
yarn install
- Install all
Elm
dependencies:
elm-package install
Development
- Start development server:
yarn run start
- Then navigate to:
http://localhost:3000
Production
- To bundle files for deployment:
yarn run build