chore: add prepare & test target to Makefile
This commit is contained in:
parent
8bc6dcff27
commit
d0a9a06455
1 changed files with 7 additions and 2 deletions
9
Makefile
9
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue