@ecomplus/transactional-mails
v2.2.1
Published
Default transactional email templates for E-Com Plus stores
Maintainers
Readme
transactional-mails
Default transactional email templates for E-Com Plus stores
Usage
The @ecomplus/transactional-mails package provides a
list of methods
to render email templates with received data.
Each method render a specific template, all of them returns a promise that pass HTML markup on success.
const transactionalMails = require('@ecomplus/transactional-mails')
transactionalMails.templateName(data, lang, themeColor)
.then(html => {
// HTML is a string
console.log(html)
})
.catch(err => console.error(err))Developing
- Clone the repository:
git clone [email protected]:ecomclub/transactional-mails.git- Move to folder and install dependencies:
cd transactional-mails
npm i- Run dev server on http://localhost:3000/:
npm run serveAdd or edit templates on folders
views/scssand dictionary oni18nfolder;New templates must also be added to
src/indexas exported lib method;Update jsdoc generated documentation:
npm run docCommit changes following Conventional Commits;
Release and publish:
npm run release
git push --follow-tags origin master && npm publish