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";