generator-email-workflow v0.3.7
Email Workflow
This is a workflow for building HTML emails using Gulp - scaffolded with Yeoman.
Features
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
Requirements
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 |
Installation & Usage
Open up command prompt or powershell and copy & paste the commands bellow:
$ mkdir PROJECT_NAME && cd PROJECT_NAME
$ npm i -g @railek/email-workflow
$ yo email-workflow
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