chore: add node docker service for vite dev server and prod build

This commit is contained in:
thibaud-leclere
2026-03-28 13:14:09 +01:00
parent c3dab636b1
commit d175202163
6 changed files with 66 additions and 1 deletions

View File

@@ -55,6 +55,15 @@ symfony\:cache-clear: ## Vide le cache Symfony
test: ## Lance les tests PHPUnit
docker compose exec app php bin/phpunit
node\:shell: ## Ouvre un shell dans le conteneur node
docker compose exec node sh
node\:install: ## Installe les dépendances npm
docker compose exec node npm install
node\:build: ## Build les assets pour la production
docker compose exec node npm run build
help: ## Affiche cette aide
@grep -E '^[a-zA-Z_\\:-]+:.*## ' $(MAKEFILE_LIST) \
| awk 'BEGIN {FS = "## "} {gsub(/\\:/, ":", $$1); sub(/:[^:]*$$/, "", $$1); printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}'