chore: add prepare & test target to Makefile

This commit is contained in:
Glenn Y. Rolland 2023-08-06 12:24:04 +02:00
parent 8bc6dcff27
commit d0a9a06455

View file

@ -9,6 +9,9 @@ all: build
%.mjml.html: %.mjml
npx mjml $< --config.minify > $@
.PHONY: prepare
prepare:
go mod download
.PHONY: build build-binaries build-templates
build: build-binaries build-templates ## build executable
@ -38,8 +41,10 @@ clean-templates:
clean-binaries:
rm -rf ./_build/*
test: build
./test.sh
.PHONY: test
test: # build
go test ./...
# ./test.sh
npm:
npm install