on master help sign in
Dev script now supports non-nix systems
9abc488Evangelos Lamprou
dev/elm-live.sh+6−1
@@ -4,4 +4,9 @@ set -e
4
4
5cd "$(dirname "$0")/../frontend"
5cd "$(dirname "$0")/../frontend"
6
6
7+if [[ -z $(command -v nix) ]] && [[ -z $(command -v elm-live) ]]; then
8+ echo "Please install either 'nix' or 'elm-live'" && exit 1
9+fi
10+
7−nix run nixpkgs#elmPackages.elm-live -- src/Main.elm --start-page=index.html -- --debug --output=elm.js "$@"
11+command -v nix && nix run nixpkgs#elmPackages.elm-live -- src/Main.elm --start-page=index.html -- --debug --output=elm.js "$@"
12+command -v elm-live && elm-live src/Main.elm --start-page=index.html -- --debug --output=elm.js "$@"