npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-ink-me

v1.1.0

Published

Yeoman generator to create Email templates based on Zurb Ink. Gets rid of unused CSS, inlines CSS, FTP's images to hosting provider, replaces image url references, uploads tests to Litmus.

Downloads

256

Readme

generator-ink-me Build Status

Yeoman generator

Getting Started

What is Yeoman?

Trick question. It's not a thing. It's this guy:

Basically, he wears a top hat, lives in your computer, and waits for you to tell him what kind of application you wish to create.

Not every new computer comes with a Yeoman pre-installed. He lives in the npm package repository. You only have to ask for him once, then he packs up and moves into your hard drive. Make sure you clean up, he likes new and shiny things.

###########################

yo ink-me 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:

  • Basic
  • Hero
  • Sidebar
  • Sidebar Hero
  • Order Confirmation
  • Shipping Confirmation
  • Shopify Order Confirmation
  • Shopify Shipping Confirmation

Getting Started

  • Install: npm install -g generator-ink-me
  • Run yo ink-me in the folder you wish to have your files (ex: Sites/my-email-project-folder-name)

The Generator will ask you for the following information:

  • Choose your template
  • Give your project a name -- This will be the github/bitbucket repository name
  • What domain will images be hosted on
  • What is the folder path on the server of the hosting provider you want to use
  • What is the public folder path for the images on the hosting server
  • What is your FTP username
  • What is your FTP password
  • Do you want to Litmus test
  • Litmus username **(this is conditional based on if you want litmus testing)
  • Litmus password **(conditional)
  • Litmus API name (in your litmus Settings -> Profile -> Subdomain for API) **(conditional)
  • Choose your litmus testing clients **(conditional)

Using LiveReload

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.

When Your Ready to Finalize the Files for Production

Final Build

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.

Tips

  • 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.

Yeoman License

MIT