-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (27 loc) · 995 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
.DEFAULT_GOAL := help
.PHONY: start
start: ## Runs the full application stack locally
@docker-compose up
.PHONY: test
test: ## Run automated tests
@docker-compose run app test
.PHONY: test-watch
test-watch: ## Run automated tests and re-run tests automatically on changed files
@docker-compose run app test --watchAll
.PHONY: sh-app
sh-app: ## Open a shell in the app docker image
@docker-compose run --entrypoint sh app
@echo
@echo If you have just made changes to dependencies, remember to rebuild the
@echo docker image by running \\033[33mmake rebuild\\033[0m or the changes won’t take effect.
.PHONY: rebuild
rebuild: ## Rebuild docker images
@docker-compose build
.PHONY: clean
clean: ## Reset docker and clear temporary files
@rm -rf ./node_modules
@docker-compose down
.PHONY: help
help:
@echo "Usage: make [task]\n\nAvailable tasks:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-10s\033[0m %s\n", $$1, $$2}'