Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ecommerce

Package Overview
Dependencies
Maintainers
4
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ecommerce

Easily create Ecommerce sites powered by Hanzo.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
increased by22.22%
Maintainers
4
Weekly downloads
 
Created
Source

Ecommerce

Easily create fully-static ecommerce sites powered by Hanzo.

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  /

Keywords

FAQs

Package last updated on 09 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc