build.sh: add task to automate launching development environment
This commit is contained in:
parent
b885ea5e3f
commit
f1321d6c37
1 changed files with 12 additions and 0 deletions
12
build.sh
12
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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue