From f9f9bbaf8a4d0c5b28dac075d8a3c8bee36b0c1b Mon Sep 17 00:00:00 2001 From: renardeinside Date: Wed, 21 Feb 2024 11:51:16 +0100 Subject: [PATCH] cleanup makefile --- Makefile | 40 ++++++++++++++-------------------------- 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/Makefile b/Makefile index daa7b3c..1670745 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,19 @@ -HTMX_VERSION=1.9.10 -IDIOMORPH_VERSION=0.3.0 -HTMX_DEPS_DIR=src/schorle/assets/dependencies -download-htmx-dev-deps: - rm -rf $(HTMX_DEPS_DIR) - mkdir -p $(HTMX_DEPS_DIR) - cd $(HTMX_DEPS_DIR) && wget https://raw.githubusercontent.com/bigskysoftware/htmx/v$(HTMX_VERSION)/src/htmx.js - cd $(HTMX_DEPS_DIR) && wget https://raw.githubusercontent.com/bigskysoftware/htmx/v$(HTMX_VERSION)/src/ext/ws.js - cd $(HTMX_DEPS_DIR) && wget https://raw.githubusercontent.com/bigskysoftware/idiomorph/v$(IDIOMORPH_VERSION)/src/idiomorph-htmx.js - cd $(HTMX_DEPS_DIR) && wget https://raw.githubusercontent.com/bigskysoftware/idiomorph/v$(IDIOMORPH_VERSION)/src/idiomorph.js +fmt: + hatch run lint:fmt . + +test: + hatch run test + +lint: + hatch run lint:style . + +typing: + hatch run lint:typing . --exclude=out docs-deploy: - @echo "Deploying docs infrastructure..." + @echo "Deploying docs infrastructure and the container..." cd docs/deployment && terraform apply --var-file=.tfvars @echo "Done." @@ -24,25 +25,12 @@ docs-serve: docs-build docker run -p 4444:4444 -it schorle-docs @echo "Done." -fmt: - hatch run lint:fmt . - -test: - hatch run test - - -lint: - hatch run lint:style . - -typing: - hatch run lint:typing . --exclude=out - -restart-docs-app: +docs-restart-app: @echo "Restarting docs app..." az webapp restart --name schorle-webapp --resource-group schorle-rg @echo "Done." -serve-docs: +docs-serve: @echo "Serving docs..." docker build -t schorle-docs -f docs/Dockerfile.docs . docker run -p 4444:4444 -it schorle-docs