diff --git a/Makefile b/Makefile index b8b302e..87da424 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,23 @@ GOFILES=$(wildcard *.go) NAME=musala-push +MJML_TEMPLATES=$(wildcard templates/*.mjml) +MJML_OUTPUT=$(patsubst %.mjml,%.mjml.html,$(MJML_TEMPLATES)) all: build -.PHONY: build -build: ## build executable +%.mjml.html: %.mjml + npx mjml $< --config.minify > $@ + + +.PHONY: build build-binaries build-templates +build: build-binaries build-templates ## build executable + +build-binaries: build-templates go build ./... +build-templates: $(MJML_OUTPUT) + install: ## install binaries go install ./... @@ -19,8 +29,13 @@ shellcheck: ## run shellcheck validation help: ## print this help @awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) -.PHONY: clean -clean: ## remove build artifacts +.PHONY: clean clean-templates clean-binaries +clean: clean-templates clean-binaries ## remove build artifacts + +clean-templates: + rm -f ./templates/*.mjml.html + +clean-binaries: rm -rf ./_build/* test: build @@ -30,13 +45,4 @@ npm: npm install -MJML_TEMPLATES=$(wildcard templates/*.mjml) -MJML_OUTPUT=$(patsubst %.mjml,%.mjml.html,$(MJML_TEMPLATES)) - -%.mjml.html: %.mjml - npx mjml $< --config.minify > $@ - -templates: $(MJML_OUTPUT) - -.PHONY: templates diff --git a/templates/html.mjml b/templates/html.mjml index 208eda8..4f9180c 100644 --- a/templates/html.mjml +++ b/templates/html.mjml @@ -1,43 +1,55 @@ + + + .footer-link { color: white !important; font-weight: bold; text-decoration: underline !important; } + + + - - - - - - Mardi 28 aout 2020 - - Visit Board - - + + + + + + Mardi 28 aout 2020 + + Visit Board + + - - - - - - Your daily task list for - - - BC.Business.Operational - - - - - - - Topic dsfsdfs - - - Topic dsfsdfs - - - Lorem ipsum dolor sit amet, blablablabla truc - - + + + + + Your daily task list for + + + BC.Business.Operational + + + + + + + Topic ABC + + + Topic dsfsdfs + + + Lorem ipsum dolor sit amet, blablablabla >> see more + + + + + + + To stop receiving these emails, you can change your notification preferences in Musala. + +