combine.fm/Makefile

45 lines
1.1 KiB
Makefile
Raw Normal View History

2017-10-23 17:58:23 +01:00
# See http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
.PHONY: help
help:
@echo
@echo "Commands:"
@grep -E -h '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@echo
2018-04-30 22:20:01 +01:00
@echo "See README.md"
2017-10-23 17:58:23 +01:00
@echo
.PHONY: start
start: docker-compose-up watch-frontend ## Start containers and watch frontend
2018-04-13 01:42:16 +01:00
.PHONY: build
build: ## Run `yarn run build`
docker-compose run --rm app yarn run build
2017-11-11 20:55:09 +00:00
.PHONY: test
test: ## Run tests
docker-compose run --rm app yarn test
2017-10-23 19:21:19 +01:00
.PHONY: logs
logs: ## Tail the app and worker logs
docker-compose logs -f app worker
2017-10-23 17:58:23 +01:00
.PHONY: migrate
migrate: ## Migrate database schema
docker-compose run --rm app yarn initdb
.PHONY: watch-frontend
watch-frontend: ## Build and watch frontend for changes
docker-compose run --rm app yarn watch-js
.PHONY: docker-compose-up
docker-compose-up: ## Start (and create) docker containers
docker-compose up -d
2018-03-11 20:22:17 +00:00
.PHONY: yarn
2018-04-08 16:31:46 +01:00
yarn: ## Update yarn dependencies
2018-03-11 20:22:17 +00:00
docker-compose run --rm app yarn
2018-04-13 01:42:16 +01:00
.PHONY: shell
shell: ## Run shell
docker-compose run --rm app sh