Skip to content

Commit 00437c0

Browse files
committed
Make frontend checks output more obvious
1 parent c15b2be commit 00437c0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

frontend/Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
SHELL := /bin/bash
2+
13
check-frontend: \
24
format-frontend-code \
35
lint-frontend-code
@@ -20,10 +22,16 @@ exec-frontend-command-it:
2022
@docker exec -it nest-frontend $(CMD)
2123

2224
format-frontend-code:
23-
cd frontend && pnpm run format
25+
@cd frontend && pnpm run format:check >/dev/null 2>&1 \
26+
&& (printf "pnpm run format"; for i in $$(seq 1 58); do printf "."; done; printf "\033[30;42mPassed\033[0m\n") \
27+
|| (printf "pnpm run format"; for i in $$(seq 1 58); do printf "."; done; printf "\033[37;41mFailed\033[0m\n")
28+
@cd frontend && pnpm run format >/dev/null 2>&1
2429

2530
lint-frontend-code:
26-
cd frontend && pnpm run lint
31+
@cd frontend && pnpm run lint:check >/dev/null 2>&1 \
32+
&& (printf "pnpm run lint"; for i in $$(seq 1 60); do printf "."; done; printf "\033[30;42mPassed\033[0m\n") \
33+
|| (printf "pnpm run lint"; for i in $$(seq 1 60); do printf "."; done; printf "\033[37;41mFailed\033[0m\n")
34+
@cd frontend && pnpm run lint >/dev/null 2>&1
2735

2836
shell-frontend:
2937
@CMD="/bin/sh" $(MAKE) exec-frontend-command-it

0 commit comments

Comments
 (0)