combine.fm/Makefile

49 lines
1.2 KiB
Makefile
Raw Permalink 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
2025-05-20 13:18:24 +01:00
start: podman-compose-up watch-frontend ## Start containers and watch frontend
2017-10-23 17:58:23 +01:00
2018-04-13 01:42:16 +01:00
.PHONY: build
build: ## Run `yarn run build`
2025-05-20 13:18:24 +01:00
podman compose run --rm app yarn run build
2018-04-13 01:42:16 +01:00
2017-11-11 20:55:09 +00:00
.PHONY: test
test: ## Run tests
2025-05-20 13:18:24 +01:00
podman compose run --rm app yarn test
2017-11-11 20:55:09 +00:00
2017-10-23 19:21:19 +01:00
.PHONY: logs
logs: ## Tail the app and worker logs
2025-05-20 13:18:24 +01:00
podman compose logs -f app worker
2017-10-23 17:58:23 +01:00
.PHONY: migrate
migrate: ## Migrate database schema
2025-05-20 13:18:24 +01:00
podman compose run --rm app yarn initdb
2017-10-23 17:58:23 +01:00
.PHONY: watch-frontend
watch-frontend: ## Build and watch frontend for changes
2025-05-20 13:18:24 +01:00
podman compose run --rm app yarn watch-js
2017-10-23 17:58:23 +01:00
2025-05-20 13:18:24 +01:00
.PHONY: podman-compose-up
podman-compose-up: ## Start (and create) docker containers
podman 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
2025-05-20 13:18:24 +01:00
podman compose run --rm app yarn
2018-04-13 01:42:16 +01:00
.PHONY: shell
shell: ## Run shell
2025-05-20 13:18:24 +01:00
podman compose run --rm app sh
2020-08-21 11:15:06 +01:00
.PHONY: open
open: ## Open app in browser
xdg-open http://localhost:3000