2024-09-02 11:20:53 +03:00
|
|
|
.DEFAULT_TARGET=help
|
2024-07-12 11:51:27 +03:00
|
|
|
|
2024-09-02 11:20:53 +03:00
|
|
|
## help: Display list of commands
|
|
|
|
.PHONY: help
|
|
|
|
help:
|
|
|
|
@echo "Available commands:"
|
|
|
|
@sed -n 's|^##||p' $(MAKEFILE_LIST) | column -t -s ':' | sed -e 's|^| |'
|
2024-07-12 11:51:27 +03:00
|
|
|
|
2023-12-04 12:39:58 +03:00
|
|
|
|
2024-09-02 11:20:53 +03:00
|
|
|
## dev: Start development environment
|
|
|
|
.PHONY: dev
|
|
|
|
dev:
|
|
|
|
DOCKER_BUILDKIT=1 docker compose -f docker-compose.dev.yml up --build
|
2023-12-04 12:39:58 +03:00
|
|
|
|
2024-09-02 11:20:53 +03:00
|
|
|
dev-build:
|
|
|
|
DOCKER_BUILDKIT=1 docker compose -f docker-compose.dev.yml build --no-cache
|
|
|
|
DOCKER_BUILDKIT=1 docker compose -f docker-compose.dev.yml up
|
2023-12-12 16:29:58 +03:00
|
|
|
|
2024-09-02 11:20:53 +03:00
|
|
|
## prod: Build and start production environment
|
|
|
|
.PHONY: prod
|
2023-06-04 00:12:42 +03:00
|
|
|
prod:
|
2023-07-10 15:27:49 +03:00
|
|
|
docker compose -f docker-compose.yml up --build
|
|
|
|
|
2024-09-02 11:20:53 +03:00
|
|
|
## front: Build and start frontend
|
|
|
|
.PHONY: front
|
2024-04-28 16:10:21 +03:00
|
|
|
front:
|
2024-09-02 11:20:53 +03:00
|
|
|
cd frontend && yarn && yarn build && yarn start
|
2024-08-06 15:51:27 +03:00
|
|
|
|
2024-09-02 11:20:53 +03:00
|
|
|
## test: Run tests
|
|
|
|
.PHONY: test
|
2024-08-06 15:51:27 +03:00
|
|
|
test:
|
2024-09-02 11:20:53 +03:00
|
|
|
# Ensure dependencies are installed with dev and test extras
|
|
|
|
# poetry install --with dev,test && brew install tesseract pandoc libmagic
|
|
|
|
./.run_tests.sh
|