-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
13 lines (12 loc) · 935 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
MAX_JOBS=10
.PHONY: start
start:
ifeq ($(BEE_TRAVELS_ARGS),)
-@yarn workspaces foreach -pi -j $(MAX_JOBS) --include ui-backend --include ui-frontend --include destination-v1 --include hotel-v1 --include car-rental-v1 --include currency-exchange run start 2>/dev/null || true
else ifeq ($(BEE_TRAVELS_ARGS), v1)
-@yarn workspaces foreach -pi -j $(MAX_JOBS) --include ui-backend --include ui-frontend --include destination-v1 --include hotel-v1 --include car-rental-v1 run start 2>/dev/null || true
else ifeq ($(BEE_TRAVELS_ARGS), v2)
-@yarn workspaces foreach -pi -j $(MAX_JOBS) --include ui-backend --include ui-frontend --include destination-v2 --include hotel-v2 --include car-rental-v2 --include currency-exchange run start 2>/dev/null || true
else
-@yarn workspaces foreach -pi -j $(MAX_JOBS) --include ui-backend --include ui-frontend $(foreach word,$(BEE_TRAVELS_ARGS),--include=$(word)) run start 2>/dev/null || true
endif