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