File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1+ SHELL := /bin/bash
2+
13check-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
2224format-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
2530lint-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
2836shell-frontend :
2937 @CMD=" /bin/sh" $(MAKE ) exec-frontend-command-it
You can’t perform that action at this time.
0 commit comments