accounting/Makefile

21 lines
402 B
Makefile
Raw Normal View History

2024-01-16 15:13:04 +00:00
PORT := 5000
default: build
build: frontend
go build \
-ldflags "-X main.version=$(shell git describe --tags --always || echo dev)" \
-mod=readonly \
-trimpath
.PHONY: frontend
frontend: node_modules
2024-01-17 22:36:40 +00:00
git clean -fdx pkg/frontend/assets/
2024-01-16 15:13:04 +00:00
node ci/build.mjs
node_modules:
vault2env --key secret/jenkins/fontawesome -- npm ci --include=dev
run: frontend
envrun -- go run . --listen=:$(PORT)