-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (32 loc) · 688 Bytes
/
Makefile
File metadata and controls
41 lines (32 loc) · 688 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
ifneq ($(shell docker compose version 2>/dev/null),)
DOCKER_COMPOSE=docker compose
else
DOCKER_COMPOSE=docker-compose -f compose.yaml
endif
.PHONY: up
up:
$(DOCKER_COMPOSE) up -d
.PHONY: stop
stop:
$(DOCKER_COMPOSE) stop
.PHONY: down
down:
$(DOCKER_COMPOSE) down -v
.PHONY: install
install:
$(DOCKER_COMPOSE) run --rm node npm install
.PHONY: update
update:
$(DOCKER_COMPOSE) run --rm node npm update
.PHONY: build
build:
$(DOCKER_COMPOSE) run --rm node npm run build
.PHONY: test
test:
$(DOCKER_COMPOSE) run --rm node npm test
.PHONY: audit
audit:
$(DOCKER_COMPOSE) run --rm node npm audit
.PHONY: audit-fix
audit-fix:
$(DOCKER_COMPOSE) run --rm node npm audit fix