Add quality gates and baseline tests for web/mobile
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# --- Mobile App Development ---
|
||||
|
||||
.PHONY: mobile-install mobile-info mobile-client-dev-android mobile-staff-dev-android mobile-client-build mobile-staff-build mobile-hot-reload mobile-hot-restart
|
||||
.PHONY: mobile-install mobile-info mobile-analyze mobile-test mobile-client-dev-android mobile-staff-dev-android mobile-client-build mobile-staff-build mobile-hot-reload mobile-hot-restart
|
||||
|
||||
MOBILE_DIR := apps/mobile
|
||||
|
||||
@@ -19,6 +19,14 @@ mobile-info:
|
||||
@echo "--> Fetching mobile command info..."
|
||||
@cd $(MOBILE_DIR) && melos run info
|
||||
|
||||
mobile-analyze:
|
||||
@echo "--> Running mobile static analysis for client and staff..."
|
||||
@cd $(MOBILE_DIR) && melos run analyze:all
|
||||
|
||||
mobile-test:
|
||||
@echo "--> Running mobile tests for client and staff..."
|
||||
@cd $(MOBILE_DIR) && melos run test:all
|
||||
|
||||
# --- Hot Reload & Restart ---
|
||||
mobile-hot-reload:
|
||||
@echo "--> Triggering hot reload for running Flutter app..."
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# --- Web App Development ---
|
||||
|
||||
.PHONY: web-install web-info web-dev web-build web-lint web-preview web-deploy
|
||||
.PHONY: web-install web-info web-dev web-build web-lint web-test web-preview web-deploy
|
||||
|
||||
WEB_DIR := apps/web
|
||||
|
||||
@@ -30,6 +30,10 @@ web-lint:
|
||||
@echo "--> Linting web frontend..."
|
||||
@cd $(WEB_DIR) && pnpm lint
|
||||
|
||||
web-test:
|
||||
@echo "--> Running web frontend tests..."
|
||||
@cd $(WEB_DIR) && pnpm test
|
||||
|
||||
web-preview:
|
||||
@echo "--> Previewing web frontend build..."
|
||||
@cd $(WEB_DIR) && pnpm preview
|
||||
|
||||
Reference in New Issue
Block a user