mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-28 09:58:11 +03:00
24 lines
457 B
Plaintext
24 lines
457 B
Plaintext
start:
|
|
#!/bin/bash
|
|
ARGS=(server client)
|
|
|
|
echo "Starting: ${ARGS[@]}"
|
|
set -e
|
|
pids=()
|
|
for target in ${ARGS[@]}; do
|
|
(just "$target") &
|
|
pids+=($!)
|
|
done
|
|
trap 'echo "Stopping all..."; kill -TERM ${pids[@]}; wait' SIGINT
|
|
wait
|
|
|
|
|
|
server:
|
|
cd typescript/server && \
|
|
TACHI_CONFIG=$(cat conf.json5) \
|
|
VERSION=$(jq -r .version package.json) \
|
|
COMMIT_HASH=$(git rev-parse --short HEAD) \
|
|
bun --watch src/main.ts
|
|
|
|
client:
|
|
cd typescript/client && vite |