-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 771 Bytes
/
Makefile
File metadata and controls
37 lines (28 loc) · 771 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
.PHONY: clean build lint test coverage docker-up docker-build
include .env
NODE_VERSION_SUPPORTED := >=20.0.0
NODE_VERSION=$(shell node -v)
clean:
rm -rf ./dist ./coverage
build:
$(info Node version supported: $(NODE_VERSION_SUPPORTED))
$(info Node version installed: $(NODE_VERSION))
npm ci --silent
npm run build
docker-build:
$(info docker build starting)
docker compose -f docker-compose.yml build
docker-up:
ifeq ($(NODE_ENV),development)
$(info Building development environment)
docker compose -f docker-compose.yml -f ./infrastructure/docker/development/docker-compose.override.yml up
else
$(info Building production environment)
docker compose -f docker-compose.yml up
endif
lint:
npm run lint
test:
npm run test
coverage:
npm run coverage