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

ecommerce

v0.1.1

Published

Easily create Ecommerce sites powered by Hanzo.

Downloads

93

Readme

Ecommerce

Easily create fully-static ecommerce sites powered by Hanzo.

Install

npm install -g ecommerce

Usage

ecommerce new my-new-site

Project layout

  • Project related files in root:
    • README
    • Gitignore
    • Build related files
  • Assets in src/
  • Entire project builds into dist/
  • Static content copied into dist/ (and optionally optimized along the way)
  • Spritemap generated and copied to dist/img/sprite.png
  • Application CSS (necessary across all pages) is bundled into dist/css/app.css
  • Page-specific CSS bundled as necessary into dist/css/<page>.css
  • Vendor (third-party) + application JS (necessary across all pages) bundled into dist/js/app.js
  • Page-specific JS bundled as necessary into dist/js/<page>.js
  • HTML is generated from remote content + templates

Fonts, Images copied

src/font/*                     ---> dist/font/*
src/img/*                      ---> dist/img/*

Spritemap generated

src/img/sprite/1.png           ---> dist/img/sprite.png
src/img/sprite/2.png          /---> .tmp/sprite.css
src/img/sprite/3.png         /

App CSS bundled

src/css/index.styl             ---> dist/css/app.css
src/css/a.styl                /
src/css/b.styl               /
node_modules/dep/dep.styl   /
.tmp/sprite.css            /

Page-specific CSS bundled

src/css/page/index.styl        ---> dist/css/<page>.css
src/css/page/a.styl           /
src/css/page/b.styl          /

Vendor JS concatenated

src/js/vendor/jquery.js        ---> .tmp/vendor.js
src/js/vendor/a.js            /
src/js/vendor/b.js           /
src/js/vendor/c.js          /
src/js/vendor/d.js         /

App JS bundled

src/js/index.coffee            ---> .tmp/bundle.js
src/js/a.coffee               /
src/js/b.coffee              /
src/js/c.coffee             /
node_modules/dep/dep.js    /

Concat vendor + bundled JS

.tmp/vendor.js                 ---> dist/js/app.js
.tmp/bundle.js                /

Page-specific JS bundled

src/js/page/index.coffee       ---> dist/js/<page>.js
src/js/page/a.coffee          /
src/js/page/b.coffee         /
src/js/page/c.coffee        /
node_modules/dep2/dep2.js  /

HTML generated from templates + includes

src/index.jade                 ---> dist/index.html
src/_header.jade              /
src/_footer.jade             /

src/page.jade                  ---> dist/page.html
src/_header.jade              /
src/_footer.jade             /

HTML generated from templates + remote content

src/post.jade                  ---> dist/post/slug.html
src/_header.jade              /
src/_footer.jade             /
api.hanzo.io/content/:slug  /

src/product.jade               ---> dist/product/slug.html
src/_header.jade              /
src/_footer.jade             /
api.hanzo.io/product/:slug  /