mirror of
https://github.com/ilyakooo0/seax.git
synced 2024-10-26 12:52:17 +03:00
13 lines
417 B
Bash
Executable File
13 lines
417 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")/../frontend"
|
|
|
|
if [[ -z $(command -v nix) ]] && [[ -z $(command -v elm-live) ]]; then
|
|
echo "Please install either 'nix' or 'elm-live'" && exit 1
|
|
fi
|
|
|
|
command -v nix && nix run nixpkgs#elmPackages.elm-live -- src/Main.elm --start-page=index.html -- --debug --output=elm.js "$@"
|
|
command -v elm-live && elm-live src/Main.elm --start-page=index.html -- --debug --output=elm.js "$@"
|