-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
34 lines (25 loc) · 985 Bytes
/
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
SHELL := /bin/bash
.DEFAULT_GOAL := help
.PHONY: help
help:
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
up: ## Run a local development environment with Docker Compose.
@docker-compose -f ./deployments/dev/docker-compose.yml up --build --force-recreate
recreate: ## Recreate and run development docker compose
@docker-compose -f ./deployments/dev/docker-compose.yml up --build --force-recreate
down: ## Stop Docker Compose local development environment.
@docker-compose -f ./deployments/dev/docker-compose.yml down
clean: ## Clean Docker Compose local development environment.
@docker-compose -f ./deployments/dev/docker-compose.yml down --remove-orphans --volumes
.PHONY: test
test: ## Run tests
@npm test
fmt: ## Format code
@npm run format
lint: ## Run static analysis
@npm run lint
check: ## Run all checks for this project
@npm run format:check
@npm run lint
@npm run test
@npm run build