-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
55 lines (42 loc) · 1.48 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
files = -f docker-compose.yml
help:
@echo "How to use:"
@echo
@echo " $$ make build build mongoDB and Mopidy images"
@echo " $$ make start start mongoDB and Mopidy"
@echo " $$ make stop-all stop all local development environment"
@echo " $$ make fe-serve start the frontend"
@echo " $$ make be-serve start the backend"
@echo " $$ make fe runs frontend scripts (e.g args=lint)"
@echo " $$ make be runs backend scripts (e.g args=lint)"
@echo " $$ make fe-test runs ALL frontend tests (use args= for any args)"
@echo " $$ make be-test runs ALL backend tests (use args= for any args)"
@echo " $$ make test runs ALL tests (same as on CI)"
@echo " $$ make fe-deploy production deploy of frontend to Github"
@echo " $$ make be-deploy production deploy of backend using dist/ dir"
build:
docker-compose down
docker-compose build
start:
docker-compose $(args) up
fe-serve:
make fe task=start
be-serve:
make be task=start
stop-all:
docker-compose down
fe:
yarn workspace @jukebox/frontend $(task)
be:
yarn workspace @jukebox/backend $(task)
fe-test:
yarn workspace @jukebox/backend test $(args)
be-test:
yarn workspace @jukebox/backend test $(args)
test:
CI=true yarn workspace @jukebox/frontend test:ci
CI=true yarn workspace @jukebox/backend test:ci
fe-deploy:
./scripts/deploy-frontend.sh
be-deploy:
./scripts/deploy-backend.sh