-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (53 loc) · 1.22 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
install:
@echo "========== Installing dependencies =========="
@echo
yarn install
@echo
@echo "========== Generating files =========="
@echo
npm run build
@echo
@echo "========== Building infrastructure =========="
@echo
-cd infra/cron && docker-compose build
@echo
@echo "========== Starting container =========="
@echo
-cd infra/cron && docker-compose up -d
@echo
@echo "========== Testing the code and writing coverage =========="
@echo
npm test
@echo
@echo
@echo "Enjoy ;)"
no-docker:
@echo "========== Installing dependencies =========="
@echo
yarn install
@echo
@echo "========== Testing the code and writing coverage =========="
@echo
npm test
@echo
@echo
@echo "Enjoy ;)"
uninstall:
@echo "========== Cleaning the project =========="
@echo
-rm -R bin node_modules coverage
@echo
@echo "========== Destroying infrastructure =========="
docker-compose kill
docker-compose rm -f
@echo "Done."
purge:
@echo "========== Cleaning the project =========="
@echo
-rm -R bin node_modules coverage
@echo
@echo "========== Destroying infrastructure =========="
-cd infra/cron && docker-compose kill
-cd infra/cron && docker-compose rm -f
-cd infra/cron && docker rmi mongo-s3-backup
@echo "Done."