forked from Advanced-Computer-Lab-2022/Hungry-for-Grades
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (45 loc) · 769 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
APP_NAME = typescript-express
APP_NAME := $(APP_NAME)
CMD:=yarn run
client:=cd client
server:=cd server
root:=cd ..
# Docker Compose
up:
docker-compose up --build -d
# to install dependencies in root & client & server
install:
yarn run installall
# to run the server
runserver:
$(server)
$(CMD) dev
# to run the client
runclient:
$(client)
$(CMD) dev
# to run the server and client concurrently
run:
$(CMD) dev
# to test client
testclient:
$(client)
$(CMD) test
# to test server
testserver:
$(server)
$(CMD) test
# to test the server and client concurrently
test:
$(CMD) test
# to lint client
lintclient:
$(client)
$(CMD) lint
# to lint server
lintserver:
$(server)
$(CMD) lint
# to lint the server and client concurrently
lint:
$(CMD) lint