mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 15:47:55 +01:00
1cf4d46bb1
### Before ``` $ make watch bash build/watch.sh make[1]: Entering directory '/Users/silverwind/git/gitea' make[1]: Entering directory '/Users/silverwind/git/gitea' GITEA_RUN_MODE=dev go run github.com/cosmtrek/air@v1.43.0 -c .air.toml rm -rf public/js public/css public/fonts public/img/webpack public/serviceworker.js NODE_ENV=development npx webpack --watch --progress ``` ### After ``` $ make watch GITEA_RUN_MODE=dev go run github.com/cosmtrek/air@v1.43.0 -c .air.toml NODE_ENV=development npx webpack --watch --progress ```
9 lines
150 B
Bash
9 lines
150 B
Bash
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
make --no-print-directory watch-frontend &
|
|
make --no-print-directory watch-backend &
|
|
|
|
trap 'kill $(jobs -p)' EXIT
|
|
wait
|