-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (35 loc) · 972 Bytes
/
Makefile
File metadata and controls
49 lines (35 loc) · 972 Bytes
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
DC := docker compose
.PHONY: install start up stop build logs backend-shell frontend-shell lint test coverage audit-force lint-fix
install:
$(DC) build
$(DC) run --rm backend npm install
$(DC) run --rm frontend npm install
start:
$(DC) up backend frontend
up:
$(DC) up --build
stop:
$(DC) down
build:
$(DC) build
logs:
$(DC) logs -f
backend-shell:
$(DC) exec backend sh
frontend-shell:
$(DC) exec frontend sh
lint:
$(DC) run --rm backend npm run lint
$(DC) run --rm frontend npm run lint
lint-fix:
$(DC) run --rm backend npm run lint -- --fix
$(DC) run --rm frontend npm run lint -- --fix
test:
$(DC) run --rm backend npm run test
$(DC) run --rm frontend npm run test
coverage:
$(DC) run --rm backend npm run test:coverage
$(DC) run --rm frontend npm run test:coverage
audit-force:
$(DC) run --rm backend npm audit fix --force || true
$(DC) run --rm frontend npm audit fix --force || true