From 5f74797c02c33338c95f8aa8d850fb256c9a9b4c Mon Sep 17 00:00:00 2001 From: Erzbir Date: Fri, 14 Nov 2025 23:52:30 +0800 Subject: [PATCH] build: add test target --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1298244..4cebfca 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ VERSION := $(shell grep '^[[:space:]]*version:' theme.yaml | head -n1 | cut -d ' THEME := $(NAME)-$(VERSION) ARCHIVE := $(THEME).zip -all: install build +all: install build test $(NODE_MODS): package.json pnpm install @@ -17,6 +17,9 @@ install: $(NODE_MODS) build: $(DIST_DIR) +test: $(DIST_DIR)/$(ARCHIVE) + @unzip $(DIST_DIR)/$(ARCHIVE) -d $(DIST_DIR)/$(NAME) + .PHNOY: clean clean: @rm -rf $(DIST_DIR)