on master help sign in
Dev script now supports non-nix systems
commit9abc4882fb66557f4ef04fdba9c32bfd4fb2bd19 authorEvangelos Lamprou <e.lamprou@upnet.gr> dateWed 18 Oct 2023, 00:11 (3 years ago) parentcae5201
1 file changed+6−1
dev/elm-live.sh+6−1
dev/elm-live.sh+6−1
@@ -4,4 +4,9 @@ set -e
44
55cd "$(dirname "$0")/../frontend"
66
7−nix run nixpkgs#elmPackages.elm-live -- src/Main.elm --start-page=index.html -- --debug --output=elm.js "$@"
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+
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 "$@"