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-dwwpugemail

v1.3.0

Published

A Yeoman generator for a simple Pug e-mail templates with Grunt: Sass to Css compilation and a Css inliner task.

Downloads

18

Readme

Yeoman generator for simple Pug / Sass enabled e-mail templates

Simple Pug e-mail templates with Grunt: Sass to Css compilation and a Css inliner task.

By Dennis Burger, Dutchwebworks Waddinxveen may 2017

One time installation

Make sure NodeJS is installed by going to the NodeJS website, download and install it for your operating system. This will also make the npm command-line tool available.

Open a command-line window (Terminal or MS-DOS prompt) and type the following to globally (-g) install the above required NPM components all in one go:

npm install -g yo grunt-cli

Download this Yeoman generator

Before you can use this generator you need to download it. Run the command below to globally install this generator.

npm install -g generator-dwwpugemail

Check globally installed NPM packages

To view your globally installed NPM list type the following. The new Yeoman generator should be listed here.

npm ls -g --depth=0

Using this generator in a new project

Create and cd to a new (empty) project directory where we'll use this generator as a starting point for a new project. Now type:

yo dwwpugemail

Yeoman questions

You will be greated by Yeoman and he will ask you some basic questions regarding your new project. This meta-data information is used inside some of the Yeoman generated files.

Finally a web browser will open with http://localhost:3000. In the background Grunt or Gulp is watching for changes to the following files:

  • *.pug
  • *.scss
  • *.js
  • *.img

When any of these change Grunt will compile / copy over those changes from the src/ to the dist/ directory and refresh the web browser.

Stopping and continuing working on this web site

When your working with this setup, Grunt is running as described above etc., and want to quit your local development, do the following.

Stop Grunt from watching

In the still running command-line window (Terminal or MS-DOS prompt) hit ctrl + c and type y. This will stop Grunt from watching, compiling and serving the dist/ directory to http://localhost:3000 in the web browser. The web site no longer works in your web browser.

Start Grunt watching and serving the web site again

To continue working on your site open a command-line window (Terminal or MS-DOS prompt) and make sure you cd into the directory where the Gruntfile.js resides and type:

grunt serve

Yeoman generator

Updating

If this Yeoman generator is updated you can update your globally installed version with the newer version by just reinstalling it again.

npm install -g generator-dwwpugemail

Removing

Optionally: If you want to remove this globally installed Yeoman generator you need to unlink it. Open a command-line window (Terminal or MS-DOS prompt) and type:

npm uninstall -g generator-dwwpugemail

Now you can't use yo dwwpugemail anymore to generate a new web site using this Yeoman generator.