From 332662d1e5eaf4540d84cf471a59571627fec4f5 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Thu, 13 Mar 2025 18:54:20 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7(frontend)=20add=20make=20commands?= =?UTF-8?q?=20for=20simplified=20frontend=20setup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added intuitive make commands that help new developers quickly set up frontend dependencies and launch the entire stack. This streamlines onboarding by providing clear entry points for common development tasks without requiring deep knowledge of the project structure. --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Makefile b/Makefile index d6c50cdc..847fa963 100644 --- a/Makefile +++ b/Makefile @@ -130,6 +130,25 @@ stop: ## stop the development server using Docker @$(COMPOSE) stop .PHONY: stop +# -- Front + +frontend-development-install: ## install the frontend locally + cd $(PATH_FRONT) && npm i +.PHONY: frontend-development-install + +frontend-lint: ## run the frontend linter + cd $(PATH_FRONT) && npm run lint +.PHONY: frontend-lint + +frontend-format: ## run the frontend format + cd $(PATH_FRONT) && npm run format +.PHONY: frontend-format + +run-frontend-development: ## run the frontend in development mode + @$(COMPOSE) stop frontend + cd $(PATH_FRONT) && npm run dev +.PHONY: run-frontend-development + # -- Backend demo: ## flush db then create a demo for load testing purpose