1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-23 02:38:35 +00:00

Add 'make watch' (#12636)

* Add 'make watch'

This combines frontend and backend watch into a single command that runs
them in parallel on on SIGINT terminates both.

Termination is not super-clean but I guess it does not have to.

* move to tools/, trap more signals, remove gnu-specific flag

* simplify

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
silverwind
2020-09-05 02:55:06 +02:00
committed by GitHub
parent 9837b598fc
commit e1535c74cc
3 changed files with 15 additions and 6 deletions

8
tools/watch.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
set -euo pipefail
make watch-frontend &
make watch-backend &
trap 'kill $(jobs -p)' EXIT
wait