From d6589fe1d96a2956e7fda8a877fb0eed8213628d Mon Sep 17 00:00:00 2001 From: Julien Jacottet Date: Mon, 24 Feb 2025 10:56:53 +0100 Subject: [PATCH] add make install --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index c5b7401..b43653c 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ DOCKER_COMP = docker compose # Docker containers PHP_CONT = $(DOCKER_COMP) exec -w /srv/app php +PHP_CONT_APP = $(DOCKER_COMP) exec -w /srv/app/tests/TestApplication php NODE_CONT = $(DOCKER_COMP) run --rm -w /srv/app node # Executables @@ -35,7 +36,18 @@ php: ## Connect to the PHP container node: ## Connect to the Node container @$(NODE_CONT) sh +## —— Test app ————————————————————————————————————————————————————————————————— + +install: + @$(PHP_CONT) composer install + @$(PHP_CONT_APP) bin/console importmap:install + @$(PHP_CONT_APP) mkdir -p var + @$(PHP_CONT_APP) bin/console doctrine:schema:update --force + @$(PHP_CONT_APP) bin/console app:load-doctrine-fixture + @$(PHP_CONT_APP) bin/console app:load-meilisearch-fixture + ## —— Assets ————————————————————————————————————————————————————————————————— + assets/install: @$(NPM) install