-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
41 lines (30 loc) · 878 Bytes
/
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
API_PROJECT = GomokuServer/src/GomokuServer.Api
CLIENT_DIR = GomokuClient
.PHONY: all dev server client clean
all: dev
dev: server client
server:
@echo "Starting C# server..."
@cd $(API_PROJECT) && dotnet run --configuration Release
client:
@echo "Starting Node.js client..."
@cd $(CLIENT_DIR) && yarn install && yarn dev
format:
@echo "Formatting C# and Node.js code..."
yarn format
clean:
@echo "Cleaning build artifacts..."
@cd GomokuServer && dotnet clean
@cd $(CLIENT_DIR) && yarn clean
download:
@echo "Downloading JSON schema from server..."
@cd $(CLIENT_DIR) && yarn download
download-localhost:
@echo "Download JSON schema from localhost..."
@cd $(CLIENT_DIR) && yarn download:localhost
codegen-swagger:
@echo "Generating API client..."
@cd $(CLIENT_DIR) && yarn codegen
codegen-hubs:
@echo "Generating hub types..."
yarn codegen-run:server