From 62c2e03409e8f7bc6f3f20df36603344afaf2b3a Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 23 Jan 2026 15:33:13 +0700 Subject: all: embed CSS and index HTML template using memfs Previously, with direct embed, every time we change the CSS or index template, we need to restart the "ciigo serve" command. Using memfs make us easy to update and see the changes directly, without restarting the server. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bc043b3..dac9ae9 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -## SPDX-FileCopyrightText: 2019 Shulhan ## SPDX-License-Identifier: GPL-3.0-or-later +## SPDX-FileCopyrightText: 2019 Shulhan VERSION:=$(shell git describe --tags) ENV_GOBIN:=$(shell go env GOBIN) @@ -16,7 +16,6 @@ lint: .PHONY: test test: - find ./testdata -name "*.html" -delete CGO_ENABLED=1 go test -failfast -v -race -p=1 -coverprofile=cover.out ./... go tool cover -html=cover.out -o cover.html @@ -31,6 +30,7 @@ run-example: .PHONY: build build: mkdir -p $(DIR_BUILD) + go run ./internal/cmd/staticfs/ CGO_ENABLED=0 go build $(LDFLAGS) -o $(DIR_BUILD) ./cmd/... .PHONY: serve-doc -- cgit v1.3