A simple setup for making Elm apps.
NOTE: This is designed to work for browsers that support web modules via script tags, which is most browsers.
- run
git clone https://github.com/wolfadex/elm-snowpack-starter.git
- run
npm install
oryarn
orpnpm install
- run
npm run dev
oryarn run dev
orpnpm run dev
to start the dev server - a browser tab will open at
localhost:1234
- edit code and watch it update!
- run
npm run build
oryarn build
orpnpm run build
- production files will end up in
dist/*
- host wherever you like, such as Netlify
I prefer to use mdgriffith/elm-ui for my layout and styling so it's included by default. If you prefer to use vanilla css, sass, less, or something else entirely it should be easy to setup. If you need assistance, please file an issue and I'll help.
Built using pnpm for package management, Snowpack for managing modules, and es-dev-server for serving files.
This has only been tested on Linux so far. If you run into any issues, please let me know and I'll help you get it working.