From 4a7ea33185a84cd76c2ca310b9f69f40b9e73acb Mon Sep 17 00:00:00 2001 From: "MH.Dmitrii" Date: Mon, 5 Oct 2026 09:41:59 +0300 Subject: [PATCH] makefile add frontend --- makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 239de41..bd02a2f 100644 --- a/makefile +++ b/makefile @@ -1,4 +1,5 @@ -VENV:=source .venv/bin/activate; +VENV:=source .venv/bin/activate && +NPM:=. $${NVM_DIR:-$$HOME/.nvm}/nvm.sh && nvm use 24 && ALLURE:=.venv/allure-2.44.0/bin/allure #linux&macos #ALLURE=.venv\allure-2.44.0\bin\allure #Windows @@ -17,7 +18,7 @@ help: ## .PHONY: run run: ## Run dev local application - docker compose -f docker/compose-dev.yaml --env-file configs/.env --profile local up -d && ${VENV} uvicorn main:app --host 0.0.0.0 --port 8000 --reload + docker compose -f docker/compose-dev.yaml --env-file configs/.env --profile local up -d && $(MAKE) -j2 backend frontend .PHONY: down down: ## Down dev local db @@ -39,6 +40,14 @@ down-dev: ## Down dev application down-prod: ## Down prod application docker compose -f docker/compose-dev.yaml --env-file configs/.env --profile prod down +.PHONY: backend +backend: ## Run backend only + ${VENV} uvicorn main:app --host 0.0.0.0 --port 8000 --reload + +.PHONY: frontend +frontend: ## Run frontend only + ${NPM} yarn --cwd ./frontend dev + ## ## Migration section ##