
A Yeoman generator
This is a Yeoman generator for building emails based on Zurb Ink templates. This also uses Grunt to add livereload, remove unused CSS and then to inline all CSS for the final build.
Email templates include:
##
npm install -g generator-ink-meyo ink-me in the folder you wish to have your files (ex: Sites/my-email-project-folder-name)##
public folder path for the images on the hosting server##
##
To get started you can run grunt from the terminal.
The default "grunt" will start the watch process for all css files and the index.html file. LiveReload is now enabled.
Grab the Chrome extension for LiveReload to help with ports.
##
##
Once you are ready to package up your final build, grunt will get rid of the unused css from Ink and inline all the css, ftp your images to your image hosting provider, and run a Litmus test if you chose Litmus -
run the command grunt inkify from the terminal
This will create a copy of your index file with a reference to a newly created css file. This new css file gets rid of all of the unused css from Ink and makes a copy of the new css for reference in the copied html.
The grunt task of 'premailer' will take the newly reference html and css and move all css inline.
Images will be optimized
Images will be FTP'd to your hosting provider.
Image relative URL's will be replaced with absolute URL's from Image Hosting Domain set during the generator.
A test will be sent to Litmus if you choose to with the clients you define.
Thats it. There will be a new folder called 'dist' that will have your email-inline.html file that is ready for use.
To get out of the 'Watch' when running the terminal, on MacOS click control and c. This will get your terminal back to the prompt to run new tasks.
Make all CSS changes in the style.css. The ink.css is from the bower componenet and is pulling the lastest ink css. These files will be merged togehter and will get rid of any unused when running grunt inkify.
##