[GH-15906][MM-22844] Redesign welcome and verify email. (#16824)

Automatic Merge
Этот коммит содержится в:
Jyoti Patel
2021-02-25 23:22:26 -05:00
коммит произвёл GitHub
родитель 6fa4c8b8bd
Коммит 87f553283a
36 изменённых файлов: 1205 добавлений и 149 удалений

18
templates/Makefile Обычный файл
Просмотреть файл

@@ -0,0 +1,18 @@
# Directory containing mjml templates
OUTPUT_DIR=.
MJML=mjml
check-prereq: ## check if mjml is installed
@if ! [ -x "$$(command -v mjml)" ]; then \
echo "mjml is not installed. Installing mjml"; \
npm install -g mjml; \
fi;
build: check-prereq ## Compile all mjml email templates
@for f in $(shell ls *.mjml); \
do \
echo "{{define \"$${f%.*}\"}}\n" > $(OUTPUT_DIR)/$${f%.*}.html; \
$(MJML) $${f} -s >> $(OUTPUT_DIR)/$${f%.*}.html; \
echo "\n{{end}}" >> $(OUTPUT_DIR)/$${f%.*}.html; \
done