refactor: make ARNES external-repo based with ticket publish flow
This commit is contained in:
45
Makefile
45
Makefile
@@ -1,19 +1,4 @@
|
||||
.PHONY: run run-dev test verify start ticket clean
|
||||
|
||||
# Puerto por defecto
|
||||
PORT?=8000
|
||||
|
||||
run:
|
||||
@echo "Arrancando ARNES API en http://localhost:$(PORT)/ui/login.html"
|
||||
@echo "Credenciales: alice@example.com / SecurePass123!"
|
||||
python3 -m uvicorn src.main:app --host 0.0.0.0 --port $(PORT)
|
||||
|
||||
run-dev:
|
||||
@echo "Arrancando en modo desarrollo (auto-reload)..."
|
||||
python3 -m uvicorn src.main:app --reload --port $(PORT)
|
||||
|
||||
test:
|
||||
python3 -m unittest discover -s tests
|
||||
.PHONY: verify start ticket publish install clean help
|
||||
|
||||
verify:
|
||||
./scripts/verify.sh
|
||||
@@ -24,22 +9,24 @@ start:
|
||||
ticket:
|
||||
python3 scripts/new_ticket.py
|
||||
|
||||
publish:
|
||||
@test -n "$(FEATURE_ID)" || (echo "Use: make publish FEATURE_ID=F-001" && exit 1)
|
||||
python3 scripts/publish_ticket.py --feature-id $(FEATURE_ID)
|
||||
|
||||
install:
|
||||
@test -n "$(TARGET)" || (echo "Use: make install TARGET=/path/to/project-repo" && exit 1)
|
||||
./scripts/install_into_repo.sh $(TARGET)
|
||||
|
||||
clean:
|
||||
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
|
||||
find . -type f -name "*.pyc" -delete 2>/dev/null || true
|
||||
|
||||
# Help
|
||||
help:
|
||||
@echo "ARNES UI API - Comandos disponibles:"
|
||||
@echo "ARNES template - commands:"
|
||||
@echo ""
|
||||
@echo " make run - Arrancar servidor (puerto 8000)"
|
||||
@echo " make run PORT=8080 - Arrancar en puerto específico"
|
||||
@echo " make run-dev - Arrancar con auto-reload"
|
||||
@echo " make test - Ejecutar tests unitarios"
|
||||
@echo " make verify - Verificar harness"
|
||||
@echo " make start - Wizard de inicio de proyecto"
|
||||
@echo " make ticket - Crear ticket (EN caveman)"
|
||||
@echo " make clean - Limpiar cache"
|
||||
@echo ""
|
||||
@echo "URLs:"
|
||||
@echo " http://localhost:8000/ui/login.html"
|
||||
@echo " make verify - Verify harness core"
|
||||
@echo " make start - First-run wizard"
|
||||
@echo " make ticket - Create ticket (EN caveman)"
|
||||
@echo " make publish FEATURE_ID=.. - Commit and push one ticket"
|
||||
@echo " make install TARGET=.. - Install ARNES into external repo"
|
||||
@echo " make clean - Clean cache files"
|
||||
|
||||
Reference in New Issue
Block a user