From 21fd87eb1ac41ff6d5e904a45e859dc750a7eea9 Mon Sep 17 00:00:00 2001 From: Azmog <80716388+AzmogEx@users.noreply.github.com> Date: Fri, 19 Jun 2026 14:42:42 +0200 Subject: [PATCH] chore: corrige l'avertissement watchman du mobile (.watchmanconfig + make mobile-reset) Co-Authored-By: Claude Opus 4.8 (1M context) --- .watchmanconfig | 12 ++++++++++++ Makefile | 10 ++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .watchmanconfig diff --git a/.watchmanconfig b/.watchmanconfig new file mode 100644 index 0000000..d7ae370 --- /dev/null +++ b/.watchmanconfig @@ -0,0 +1,12 @@ +{ + "ignore_dirs": [ + ".git", + ".venv", + "backend/vendor", + "backend/node_modules", + "backend/storage", + "frontend/node_modules", + "frontend/.next", + "mobile/.expo" + ] +} diff --git a/Makefile b/Makefile index 7d3aeda..500c07f 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ # Tape simplement `make` pour voir l'aide. .DEFAULT_GOAL := help -.PHONY: help back back-logs back-stop web mobile up down stop ps seed migrate fresh test kill-3000 +.PHONY: help back back-logs back-stop web mobile mobile-reset up down stop ps seed migrate fresh test kill-3000 ## help : affiche cette aide help: @@ -13,6 +13,7 @@ help: @echo " \033[36mmake back\033[0m Lance le BACKEND (API + PostgreSQL + Redis) dans Docker -> http://localhost:8000" @echo " \033[36mmake web\033[0m Lance le SITE WEB / landing page (Next.js, local) -> http://localhost:3000" @echo " \033[36mmake mobile\033[0m Lance l'APP MOBILE (Expo) + QR code" + @echo " \033[36mmake mobile-reset\033[0m Répare watchman puis relance Expo (si plantage/recrawl)" @echo "" @echo " \033[36mmake up\033[0m Lance TOUT dans Docker (api + db + redis + front)" @echo " \033[36mmake down\033[0m Arrête tous les conteneurs Docker" @@ -58,7 +59,12 @@ web: ## mobile : lance le serveur Expo (scanne le QR code avec Expo Go) mobile: - cd mobile && npx expo start + cd mobile && npx expo start --clear + +## mobile-reset : répare watchman + relance Expo (si "Recrawled this watch" ou plantage) +mobile-reset: + -watchman watch-del-all + cd mobile && npx expo start --clear # --------------------------------------------------------------------------- # Tout en Docker (alternative : front inclus, ne pas combiner avec `make web`)