diff options
| author | Shulhan <ms@kilabit.info> | 2026-01-23 15:33:13 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2026-01-24 07:11:24 +0700 |
| commit | 62c2e03409e8f7bc6f3f20df36603344afaf2b3a (patch) | |
| tree | 0235899db041244ecabc754ca636d7bbd651d1e0 /Makefile | |
| parent | 8970c0fef45c87c183a27f8a66d9620fdb6daa1e (diff) | |
| download | ciigo-62c2e03409e8f7bc6f3f20df36603344afaf2b3a.tar.xz | |
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.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ -## SPDX-FileCopyrightText: 2019 Shulhan <ms@kilabit.info> ## SPDX-License-Identifier: GPL-3.0-or-later +## SPDX-FileCopyrightText: 2019 Shulhan <ms@kilabit.info> 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 |
