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

v0.1.5

Published

Builds an HTML email template with SASS, Bootstrap 4, Javascript, and building it all into single HTML file.

Downloads

4

Readme

generator-amemails

This generator provides scaffolding for a maleable Bootstrap 4 email template. It includes a build task that minifies and purifies the CSS, minifies the JS, and adds it all into the HTML file. There is also a separate build task for CSS building.

How to use

Type yo amemails and you should be prompted for the necessary settings. This is just used in-house at the moment so if your setup varies from mine, it may not work, and feel free to let me know and I'll try to take a look.

Use gulp or gulp serve to run the preview server. This will build SCSS into CSS and concatenate Javascript and show all your code in a Google Chrome (change the gulpfile.js to change the browser) with LiveReload.

The build tasks are to be used once you are ready to deploy. They will produce an index.html file in a build folder that is ready to be dropped into the EMS of your choosing; although, you will have to handle the image linking after that.

To build only CSS (most of the time, this is sufficient), use the gulp build-css task. This will process the SCSS into CSS, purify the CSS based on index.html and any Javascript files, minify it, and contatenate it into index.html.

To build everything (CSS and JS), use the gulp build task. This will do the same as gulp build-css plus it will concatenate the Javascript files, minify them, and inject them into index.html.

To Do

  • Properly link images in build folder (or see next issue for potential solution).
  • Implement image treatment (packaging and optimization) and output to build folder (makes redundant issue above).
  • Implement more frameworks for grid etc.
  • Test Javascript capabilities (haven't used it much yet).
  • Include oft used settings (such as different container widths and responsive widths for Bootstrap).