-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (42 loc) · 1.32 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
UID := 1000
GID := 1000
list:
@echo ""
@echo "Useful targets:"
@echo ""
@echo " rebuild > Rebuild all images and start containers for dev only"
@echo " start > Start containers"
@echo " restart > Restart containers"
@echo " stop > Stop and kill running containers"
@echo " status > Display stack containers status"
@echo " logs > Display containers logs"
@echo " install > Install dependancies"
@echo " build > Generate the Angular client dist application (html, css, js)"
@echo " shell > Shell into client container"
@echo " tests > Starts the unit tests"
@echo " tests-wc > Starts the unit tests and generate code coverage"
@echo ""
rebuild:
@docker-compose up --build -d
start:
@docker-compose up -d
restart: stop start
stop:
@docker-compose kill
@docker-compose rm -v --force
status:
@docker-compose ps
logs:
@docker-compose logs -f -t
install:
@docker run --init -it --rm --user $(UID):$(GID) \
-v $(CURDIR)/client:/project \
-w /project node:16-slim yarn install
build:
@docker-compose exec client ng build
shell:
@docker-compose exec client bash
tests:
@docker-compose exec client npx jest
tests-wc:
@docker-compose exec client npx jest --coverage --collectCoverageFrom='src/**/*.ts'