Skip to content

Commit

Permalink
examples: improve scripts in figmain, add clean.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin committed Sep 1, 2019
1 parent 9175d65 commit 29e37b4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/figwheel-main/scripts/_shared.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

set -e -o pipefail

cd "$(dirname "${BASH_SOURCE[0]}")"
cd ..

ROOT_DIR=$(pwd)
SCRIPTS_DIR="$ROOT_DIR/scripts"

7 changes: 7 additions & 0 deletions examples/figwheel-main/scripts/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

# shellcheck source=_shared.sh
source "$(dirname "${BASH_SOURCE[0]}")/_shared.sh"

rm -rf .cpcache
rm -rf target/
3 changes: 3 additions & 0 deletions examples/figwheel-main/scripts/repl.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env bash

# shellcheck source=_shared.sh
source "$(dirname "${BASH_SOURCE[0]}")/_shared.sh"

exec clojure -A:repl -m dirac-figmain.repl

0 comments on commit 29e37b4

Please sign in to comment.