Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Notarise-gov-sg/email-template-generator

Repository files navigation

Known Vulnerabilities GitHub issues License

Generate Notarise email templates

A helper library for generate Notarise email templates.

Getting Started

npm i @notarise-gov-sg/email-template-generator

Add this to ignore the transformation of export html templates in jest.config

transformIgnorePatterns: ["/node_modules/(?!@notarise-gov-sg/email-template-generator)"]

Import & use require template

import emailTemplates from "@notarise-gov-sg/email-template-generator";

emailTemplates.multiQrVacCertHtml // for vaccination cert template
emailTemplates.multiQrRecCertHtml // for recovery cert template

Generate new responsive email templates

Generate responsive email templates using maizzle plugin

  1. Generate production use email templates healthcert-templates
npm run maizzle:build-prod

This command will generate responsive email templates at here ./src/emailTemplates.

  1. Generate developement use email templates
// debug email templates
npm run maizzle:watch

// generate development build
npm run maizzle:build

This command will generate responsive local build email templates at here ./maizzle/build_local.