Improve dev.sh script
This commit is contained in:
parent
7236ef6b7a
commit
cd94e215d4
1 changed files with 11 additions and 4 deletions
|
@ -1,5 +1,8 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||||
|
source ./engine/envvars.sh
|
||||||
|
|
||||||
## colors for tput
|
## colors for tput
|
||||||
# black=0
|
# black=0
|
||||||
red=1
|
red=1
|
||||||
|
@ -13,7 +16,11 @@ green() { printf "$(tput setaf $green)%s$(tput sgr0)" "$*" }
|
||||||
yellow() { printf "$(tput setaf $yellow)%s$(tput sgr0)" "$*" }
|
yellow() { printf "$(tput setaf $yellow)%s$(tput sgr0)" "$*" }
|
||||||
blue() { printf "$(tput setaf $blue)%s$(tput sgr0)" "$*" }
|
blue() { printf "$(tput setaf $blue)%s$(tput sgr0)" "$*" }
|
||||||
|
|
||||||
tee >(lorri watch | sed 's/^/[lorri] /' ) \
|
pipegreen() {while read line; do green $line; done}
|
||||||
>(./engine/serve.sh | sed 's/^/[http] /') \
|
pipeyellow() {while read line; do yellow $line; done}
|
||||||
>(./engine/auto-build.sh | sed 's/^/[make] /') \
|
pipeblue() {while read line; do blue $line; done}
|
||||||
>(sleep 1 && open 'http://127.0.0.1:3077')
|
|
||||||
|
tee >(lorri watch | sed 's/^/[lorri] /' | pipegreen ) \
|
||||||
|
>(./engine/serve.sh | sed 's/^/[http] /' | pipeyellow) \
|
||||||
|
>(./engine/auto-build.sh | sed 's/^/[make] /' | pipeblue) \
|
||||||
|
>(sleep 1 && open 'http://127.0.0.1:3000')
|
||||||
|
|
Loading…
Reference in a new issue