Skip to content

Commit 1cf4d46

Browse files
authored
Reduce verbosity of dev commands (#24917)
### 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/[email protected] -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/[email protected] -c .air.toml NODE_ENV=development npx webpack --watch --progress ```
1 parent 395bb33 commit 1cf4d46

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.air.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ root = "."
22
tmp_dir = ".air"
33

44
[build]
5-
cmd = "make backend"
5+
cmd = "make --no-print-directory backend"
66
bin = "gitea"
77
delay = 1000
88
include_ext = ["go", "tmpl"]

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,11 +413,11 @@ lint-editorconfig:
413413

414414
.PHONY: watch
415415
watch:
416-
bash build/watch.sh
416+
@bash build/watch.sh
417417

418418
.PHONY: watch-frontend
419419
watch-frontend: node-check node_modules
420-
rm -rf $(WEBPACK_DEST_ENTRIES)
420+
@rm -rf $(WEBPACK_DEST_ENTRIES)
421421
NODE_ENV=development npx webpack --watch --progress
422422

423423
.PHONY: watch-backend

build/watch.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22
set -euo pipefail
33

4-
make watch-frontend &
5-
make watch-backend &
4+
make --no-print-directory watch-frontend &
5+
make --no-print-directory watch-backend &
66

77
trap 'kill $(jobs -p)' EXIT
88
wait

0 commit comments

Comments
 (0)