forked from GaloyMoney/blink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (50 loc) · 1.88 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
BIN_DIR=node_modules/.bin
start-deps:
docker compose up -d
direnv reload
start-old:
. ./.envrc && yarn tsnd --respawn --files -r tsconfig-paths/register -r src/services/tracing.ts \
src/servers/graphql-old-server.ts | yarn pino-pretty -c -l
start-new:
. ./.envrc && yarn tsnd --respawn --files -r tsconfig-paths/register -r src/services/tracing.ts \
src/servers/graphql-main-server.ts | yarn pino-pretty -c -l
start-admin:
. ./.envrc && yarn tsnd --respawn --files -r tsconfig-paths/register -r src/services/tracing.ts \
src/servers/graphql-admin-server.ts | yarn pino-pretty -c -l
start: start-deps
make start-old & make start-new & make start-admin & make trigger
trigger: start-deps
. ./.envrc && yarn tsnd --respawn --files -r tsconfig-paths/register -r src/services/tracing.ts \
src/servers/trigger.ts | yarn pino-pretty -c -l
exporter: start-deps
. ./.envrc && yarn tsnd --respawn --files -r tsconfig-paths/register -r src/services/tracing.ts \
src/servers/exporter.ts | yarn pino-pretty -c -l
watch:
yarn nodemon -V -e ts,graphql -w ./src -x make start
clean-deps:
docker compose down
reset-deps: clean-deps start-deps
test: unit integration
unit:
yarn test:unit
watch-unit:
$(BIN_DIR)/jest --clearCache
NODE_ENV=test LOGLEVEL=warn $(BIN_DIR)/jest --watch --config ./test/jest-unit.config.js
watch-compile:
$(BIN_DIR)/tsc --watch --noEmit --skipLibCheck
integration:
yarn test:integration
reset-integration: reset-deps integration
integration-in-ci:
. ./.envrc && \
NODE_ENV=test LOGLEVEL=error $(BIN_DIR)/jest --config ./test/jest-integration.config.js --bail --runInBand --ci --reporters=default --reporters=jest-junit && \
yarn build && \
LOGLEVEL=error node lib/servers/cron.js
unit-in-ci:
. ./.envrc && \
LOGLEVEL=warn $(BIN_DIR)/jest --config ./test/jest-unit.config.js --ci --bail
check-code:
yarn tsc-check
yarn eslint-check
yarn prettier-check
yarn build