on master help sign in
seax/dev/elm-live.sh
12 lines 417 B history raw
1#!/bin/sh
3set -e
5cd "$(dirname "$0")/../frontend"
7if [[ -z $(command -v nix) ]] && [[ -z $(command -v elm-live) ]]; then
8 echo "Please install either 'nix' or 'elm-live'" && exit 1
9fi
11command -v nix && nix run nixpkgs#elmPackages.elm-live -- src/Main.elm --start-page=index.html -- --debug --output=elm.js "$@"
12command -v elm-live && elm-live src/Main.elm --start-page=index.html -- --debug --output=elm.js "$@"