Saltar al contenido

Generador de Makefile

Genera un Makefile con objetivos habituales (install, test, lint, build, run, docker, clean) y ayuda autodocumentada (make help).

Gratis y sin registro · Última revisión:

Generador de Makefile

Genera un Makefile con objetivos habituales (install, test, lint, build, run, docker, clean) y ayuda autodocumentada (make help).

makefile
.DEFAULT_GOAL := help
.PHONY: help install test lint run build clean docker

help: ## Muestra esta ayuda
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "  \033[36m%-12s\033[0m %s\n", $$1, $$2}'

install: ## Instala las dependencias
	python -m venv .venv && .venv/bin/pip install -r requirements.txt

test: ## Ejecuta los tests
	.venv/bin/pytest -q

lint: ## Revisa el estilo
	.venv/bin/ruff check . && .venv/bin/ruff format --check .

run: ## Arranca en desarrollo
	.venv/bin/uvicorn main:app --reload

build: ## Compila
	@echo "Python no necesita build"

clean: ## Borra artefactos
	rm -rf .venv __pycache__ .pytest_cache dist

docker: ## Construye la imagen Docker
	docker build -t miapp:$$(git rev-parse --short HEAD) -t miapp:latest .

Cómo usarla

  1. Rellena «Proyecto», «Nombre de la imagen Docker» (o pulsa «Ejemplo» para ver uno ya hecho).
  2. El resultado se calcula al momento, mientras escribes. Todo se procesa en tu navegador: los datos no salen de tu equipo.
  3. Copia el resultado, descárgalo o comparte el enlace (incluye los datos introducidos, salvo contraseñas y ficheros).

Instalar Vapa

Añade Vapa a tu pantalla de inicio para acceso rápido, incluso sin conexión.