Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
cleanup makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
renardeinside committed Feb 21, 2024
1 parent caab2d0 commit f9f9bba
Showing 1 changed file with 14 additions and 26 deletions.
40 changes: 14 additions & 26 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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."

Expand All @@ -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
Expand Down

0 comments on commit f9f9bba

Please sign in to comment.