Skip to content

Commit 1227aae

Browse files
committed
make check and fix commands quiet
1 parent a782cec commit 1227aae

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

makefile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
check:
2+
@output=$$(yarn run --silent prettier --check src 2>&1) || { echo "$$output"; exit 1; }
3+
@output=$$(yarn run --silent eslint src 2>&1) || { echo "$$output"; exit 1; }
4+
5+
fix:
6+
@output=$$(yarn run --silent prettier --write src 2>&1) || { echo "$$output"; exit 1; }
7+
@output=$$(yarn run --silent eslint --fix src 2>&1) || { echo "$$output"; exit 1; }
8+
9+
110
GIT_VERSION = `git rev-parse --short HEAD`
211

312
run:
@@ -6,14 +15,6 @@ run:
615
build:
716
yarn build
817

9-
check:
10-
yarn run prettier --check src
11-
yarn eslint src
12-
13-
fix:
14-
yarn run prettier --write src
15-
yarn eslint --fix src
16-
1718
gen:
1819
yarn run openapi-ts -i http://leda.sao.ru/api/openapi.json -o ./src/clients/backend
1920
yarn run openapi-ts -i http://leda.sao.ru/admin/api/openapi.json -o ./src/clients/admin

0 commit comments

Comments
 (0)