Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

static-shack

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

static-shack

A simple static site generator

latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

static-shack

A simple static site generator

Quickstart

Run the following

yarn add static-shack
npx static-shack init
npx static-shack page default
npx static-shack page foobar

Which will produce

dist/          - The compiled site will be placed inside here
assets/        - Put scripts, styles, images here
layouts/       - Put page layouts here
  default.html
pages/         - Every page is a folder with an index.html and page.json file
  default/     - "default" page will route to / (the root of the site)
    index.html
    page.json  - keys in this file will be availble to the page's index.html
  foobar/
    index.html
    page.json
page.json      - keys in this file will be available to all pages

Then run

npx static-shack dev

Which will create a barebones Expressjs server for developing the static site.

When you're done developing, run

npx static-shack dist

Which will produce

dist/
  assets/
  foobar/index.html
  index.html

FAQs

Package last updated on 20 Mar 2019

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