mirror of
https://github.com/Bornholm/formidable.git
synced 2025-07-30 09:11:34 +02:00
chore: tailwindcss theme + goreleaser basic recipe
This commit is contained in:
28
Makefile
28
Makefile
@ -2,6 +2,10 @@
|
||||
LINT_ARGS ?= --timeout 5m
|
||||
FRMD_CMD ?=
|
||||
SHELL = /bin/bash
|
||||
TAILWINDCSS_ARGS ?=
|
||||
GORELEASER_VERSION ?= v1.8.3
|
||||
GORELEASER_ARGS ?= --auto-snapshot --rm-dist
|
||||
GITCHLOG_ARGS ?=
|
||||
|
||||
.PHONY: help
|
||||
help: ## Display this help
|
||||
@ -21,11 +25,29 @@ build: build-frmd ## Build artefacts
|
||||
build-frmd: ## Build executable
|
||||
CGO_ENABLED=0 go build -v -o ./bin/frmd ./cmd/frmd
|
||||
|
||||
.PHONY: tailwind
|
||||
tailwind:
|
||||
npx tailwindcss -i ./internal/server/assets/src/main.css -o ./internal/server/assets/dist/main.css $(TAILWINDCSS_ARGS)
|
||||
|
||||
internal/server/assets/dist/main.css: tailwind
|
||||
|
||||
.env:
|
||||
cp .env.dist .env
|
||||
|
||||
deps:
|
||||
.PHONY: deps
|
||||
deps: node_modules
|
||||
|
||||
node_modules:
|
||||
npm ci
|
||||
|
||||
.PHONY: release
|
||||
release:
|
||||
./misc/script/release
|
||||
release: deps
|
||||
VERSION=$(GORELEASER_VERSION) curl -sfL https://goreleaser.com/static/run | bash /dev/stdin $(GORELEASER_ARGS)
|
||||
|
||||
.PHONY: changelog
|
||||
changelog:
|
||||
go run -mod=readonly github.com/git-chglog/git-chglog/cmd/git-chglog@v0.15.1 $(GITCHLOG_ARGS)
|
||||
|
||||
|
||||
install-git-hooks:
|
||||
git config core.hooksPath .githooks
|
Reference in New Issue
Block a user