From 7a0e5bbe6ae4f09e275a733d389e604d08e58b26 Mon Sep 17 00:00:00 2001 From: Brian Hicks Date: Thu, 13 May 2021 16:35:01 -0500 Subject: [PATCH] sample-app -> sample-apps --- default.nix | 2 +- {sample-app => sample-apps}/elm.json | 0 {sample-app => sample-apps}/src/FamilyTree.elm | 0 {sample-app => sample-apps}/src/Main.elm | 4 ++-- scripts/{start-sample-app.sh => start-sample-apps.sh} | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename {sample-app => sample-apps}/elm.json (100%) rename {sample-app => sample-apps}/src/FamilyTree.elm (100%) rename {sample-app => sample-apps}/src/Main.elm (98%) rename scripts/{start-sample-app.sh => start-sample-apps.sh} (84%) 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