diff --git a/default.nix b/default.nix index f56b45f..26acce9 100644 --- a/default.nix +++ b/default.nix @@ -22,7 +22,7 @@ in nixpkgs.stdenv.mkDerivation { mkdir -p $out/share/bad-datalog ( - cd sample-app + cd sample-apps elm make src/Main.elm --output $out/share/bad-datalog/index.html ) ''; diff --git a/sample-app/elm.json b/sample-apps/elm.json similarity index 100% rename from sample-app/elm.json rename to sample-apps/elm.json diff --git a/sample-app/src/FamilyTree.elm b/sample-apps/src/FamilyTree.elm similarity index 100% rename from sample-app/src/FamilyTree.elm rename to sample-apps/src/FamilyTree.elm diff --git a/sample-app/src/Main.elm b/sample-apps/src/Main.elm similarity index 98% rename from sample-app/src/Main.elm rename to sample-apps/src/Main.elm index 964519a..2c19045 100644 --- a/sample-app/src/Main.elm +++ b/sample-apps/src/Main.elm @@ -217,8 +217,8 @@ viewIndex = [ Html.text "this yet-to-be-named datalog implementation in Elm" ] , Html.text ". The source for these lives in the " , Html.a - [ Attrs.href "https://git.bytes.zone/brian/bad-datalog/src/branch/main/sample-app" ] - [ Html.code [] [ Html.text "sample-app" ] + [ Attrs.href "https://git.bytes.zone/brian/bad-datalog/src/branch/main/sample-apps" ] + [ Html.code [] [ Html.text "sample-apps" ] , Html.text " directory in the repo" ] , Html.text "." diff --git a/scripts/start-sample-app.sh b/scripts/start-sample-apps.sh similarity index 84% rename from scripts/start-sample-app.sh rename to scripts/start-sample-apps.sh index 09194fd..846e6d5 100755 --- a/scripts/start-sample-app.sh +++ b/scripts/start-sample-apps.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash set -euo pipefail -cd sample-app +cd sample-apps elm-live --pushstate index.html src/Main.elm