🧑💻(makefile) add command to interact with the front
Add command: - install-front-desk - start-front-desk-dev
This commit is contained in:
19
Makefile
19
Makefile
@@ -52,6 +52,9 @@ MANAGE = $(COMPOSE_RUN_APP) python manage.py
|
|||||||
MAIL_YARN = $(COMPOSE_RUN) -w /app/src/mail node yarn
|
MAIL_YARN = $(COMPOSE_RUN) -w /app/src/mail node yarn
|
||||||
TSCLIENT_YARN = $(COMPOSE_RUN) -w /app/src/tsclient node yarn
|
TSCLIENT_YARN = $(COMPOSE_RUN) -w /app/src/tsclient node yarn
|
||||||
|
|
||||||
|
# -- Frontend
|
||||||
|
PATH_FRONT_DESK = ./src/frontend/app/desk
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# RULES
|
# RULES
|
||||||
|
|
||||||
@@ -65,7 +68,7 @@ data/static:
|
|||||||
|
|
||||||
# -- Project
|
# -- Project
|
||||||
|
|
||||||
bootstrap: ## Prepare Docker images for the project
|
bootstrap: ## Prepare Docker images for the project and install frontend dependencies
|
||||||
bootstrap: \
|
bootstrap: \
|
||||||
data/media \
|
data/media \
|
||||||
data/static \
|
data/static \
|
||||||
@@ -78,7 +81,8 @@ bootstrap: \
|
|||||||
migrate \
|
migrate \
|
||||||
i18n-compile \
|
i18n-compile \
|
||||||
mails-install \
|
mails-install \
|
||||||
mails-build
|
mails-build \
|
||||||
|
install-front-desk
|
||||||
.PHONY: bootstrap
|
.PHONY: bootstrap
|
||||||
|
|
||||||
# -- Docker/compose
|
# -- Docker/compose
|
||||||
@@ -265,7 +269,7 @@ mails-install: ## install the mail generator
|
|||||||
|
|
||||||
# -- TS client generator
|
# -- TS client generator
|
||||||
|
|
||||||
tsclient-install: ## Install the Typescipt API client generator
|
tsclient-install: ## Install the Typescript API client generator
|
||||||
@$(TSCLIENT_YARN) install
|
@$(TSCLIENT_YARN) install
|
||||||
.PHONY: tsclient-install
|
.PHONY: tsclient-install
|
||||||
|
|
||||||
@@ -283,3 +287,12 @@ help:
|
|||||||
@echo "Please use 'make $(BOLD)target$(RESET)' where $(BOLD)target$(RESET) is one of:"
|
@echo "Please use 'make $(BOLD)target$(RESET)' where $(BOLD)target$(RESET) is one of:"
|
||||||
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "$(GREEN)%-30s$(RESET) %s\n", $$1, $$2}'
|
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "$(GREEN)%-30s$(RESET) %s\n", $$1, $$2}'
|
||||||
.PHONY: help
|
.PHONY: help
|
||||||
|
|
||||||
|
# Front
|
||||||
|
install-front-desk: ## Install the frontend dependencies of app Desk
|
||||||
|
cd $(PATH_FRONT_DESK) && yarn
|
||||||
|
.PHONY: install-front-desk
|
||||||
|
|
||||||
|
run-front-desk: ## Start app Desk
|
||||||
|
cd $(PATH_FRONT_DESK) && yarn dev
|
||||||
|
.PHONY: run-front-desk
|
||||||
|
|||||||
Reference in New Issue
Block a user