Yeoman scaffolding tool for HTML email development.
npm install generator-email-template
This is a workflow for building HTML emails using Gulp, scaffolded with Yeoman.
- Builds HTML email from Nunjuck templates and partials
- Compiles SCSS to CSS
- Inlines the inline.css file and embeds the internal.css file
- Generates a preview in your browser
- Send test emails via Nodemailer
You may already have these installed on your system. If not, you'll have to install them.
| Name | Link |
| ------ | ------------------------------- |
| nodejs | https://nodejs.org/en/download/ |
| yeoman | npm i -g yo |
| gulp | npm i -g gulp-cli |
Open up command prompt or powershell and copy & paste the commands bellow:
``sh`
$ npm i -g generator-email-template
$ yo email-template
Update nodemailer.config.js with your email credentials and default mail options.
Set up Nodemailer with Gmail, see instructions here.
gulp build builds production ready files in dist folder.
gulp develop starts a local webserver on http://localhost:8080
gulp test` send a test email using your default configuration in nodemailer.config.js