From 21a7c204d216ec1a7615156b7c8b85ee2d964b81 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Tue, 18 Jul 2023 23:21:51 +0200 Subject: feat: Add template generating to make file Add template generating code to `make` process. --- .gitignore | 1 + Makefile | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index eff712c..8c71f01 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ vendor/ static/ bin/ media_cache/ +templates/*.qtpl.go .env *.db diff --git a/Makefile b/Makefile index f1c2095..bd7d016 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ GO_RUN=go run -v all: build -build: sass +build: sass tmpl $(GO_BUILD) -o $(OUT) $(SERVER) compress: build @@ -29,6 +29,9 @@ sass: -I scss scss/main.scss static/main.css \ --style compressed +tmpl: + qtc -dir=./templates + test: test.unit test.integration test.all: gci test.unit test.integration lint -- cgit v1.2.3