Shared package for email templates and methods. It uses Maizzle for developing and compiling email templates with the aid of TailwindCSS.
# Install dependencies
npm install
# Run dev server
npm run dev
# Bump the version
npm version patch
# Build templates and compile via Rollup
npm run build
# Publish to NPM
npm publish --access public
Sending a reset password email
const { sendResetPasswordEmail } = require('@wattmore/notifications');
await sendResetPasswordEmail({
name: user.profile.firstName,
to: user.email,
emailLink: `${process.env.BASE_URL}/forgot-password?token=${token}`,
});