-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.sh
More file actions
28 lines (26 loc) 路 941 Bytes
/
Copy pathdev.sh
File metadata and controls
28 lines (26 loc) 路 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
# ==============================================
# ACES dev entrypoint. ./dev.sh <command>
# ----------------------------------------------
# up install everything for local dev
# run start dev mode (proofs + demos)
# test run the node proofs only
# db bring up self-hosted InstantDB (:8888)
# help this text
#
# Scripts are modular and live in scripts/. Each
# is sourced and exposes one function; scripts may
# call each other. Keep comments <=50 cols.
# ==============================================
set -euo pipefail
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export DIR
source "$DIR/scripts/lib.sh"
cmd="${1:-help}"
case "$cmd" in
up) source "$DIR/scripts/up.sh"; aces_up ;;
run) source "$DIR/scripts/run.sh"; aces_run ;;
test) source "$DIR/scripts/test.sh"; aces_test ;;
db) source "$DIR/scripts/instant.sh"; instant_up ;;
help|*) aces_help ;;
esac