From f1321d6c3772953bf33097b015f8e1600c04e62c Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 11 Mar 2022 01:38:08 +0000 Subject: [PATCH] build.sh: add task to automate launching development environment --- build.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build.sh b/build.sh index f2c9cec..d2cd533 100755 --- a/build.sh +++ b/build.sh @@ -37,6 +37,7 @@ if [[ "$#" -lt 1 ]]; then echo -e "${CSECTION}Available actions${RS}"; echo -e " ${CACTION}setup${RS} - Perform initial setup"; echo -e " ${CACTION}launch${RS} - Launch a 3-node development swarm"; + echo -e " ${CACTION}start-dev${RS} - As launch, but additionally starts a tab for esbuild."; echo -e ""; exit 1; @@ -74,6 +75,17 @@ task_setup() { } +task_start-dev() { + + set_title "systemquery:dev"; + + task_begin "Launching esbuild"; + terminal_tab "systemquery:build" bash -c "npm run watch; read -p 'Press enter to exit....';"; + task_end "$?"; + + task_launch; +} + task_launch() { task_begin "Launching swarm";