-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (29 loc) · 950 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
35
36
37
.PHONY: help
help: ## display help for this makefile
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: build
build: ## Build docker images
docker compose build
.PHONY: update-schema-snapshot
update-schema-snapshot: ## Update test schema snapshot
docker compose run gql npm test -- tests/UnifiedSchema.test.ts -u
.PHONY: test
test: ## Run tests
docker compose run --rm gql npm test
.PHONY: local-init
local-init: ## Build & start the service
docker compose build
docker compose up -d
.PHONY: local-start
local-start: ## Start the service
docker compose up -d
.PHONY: local-dev
local-dev: ## Start the service in development mode
docker compose run --rm gql npm run dev
.PHONY: local-stop
local-stop: ## Stop the service
docker compose stop
.PHONY: local-clean
local-clean: ## Delete the service.
docker compose stop
docker compose down