mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 05:15:33 +03: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 ```
8 lines
150 B
Bash
8 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
|