A helper library for generate Notarise email templates.
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 emailTemplates from "@notarise-gov-sg/email-template-generator";
emailTemplates.multiQrVacCertHtml // for vaccination cert template
emailTemplates.multiQrRecCertHtml // for recovery cert template
Generate responsive email templates using maizzle plugin
- Generate production use email templates healthcert-templates
npm run maizzle:build-prod
This command will generate responsive email templates at here ./src/emailTemplates
.
- 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
.