aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-07-18 23:21:51 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-07-18 23:21:51 +0200
commit21a7c204d216ec1a7615156b7c8b85ee2d964b81 (patch)
tree0ec6e6bc868a17f5f9f5ea145a95d53637ba06b2
parent55448bc974f71f83e6a6c6d70afe9cfc63d275f4 (diff)
downloadlens-21a7c204d216ec1a7615156b7c8b85ee2d964b81.tar.gz
lens-21a7c204d216ec1a7615156b7c8b85ee2d964b81.tar.bz2
lens-21a7c204d216ec1a7615156b7c8b85ee2d964b81.zip
feat: Add template generating to make file
Add template generating code to `make` process.
-rw-r--r--.gitignore1
-rw-r--r--Makefile5
2 files changed, 5 insertions, 1 deletions
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