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

kalastatic

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kalastatic

KalaStatic static-site prototyping framework

  • 2.2.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
decreased by-71.79%
Maintainers
1
Weekly downloads
 
Created
Source

kalastatic Build Status

Static site application framework for prototyping and styleguiding.

Install

Dependencies

  • node 4, 5 or 6

Globally

$ npm install kalastatic -g

Project Dependency

To install KalaStatic as a dependency in your project:

$ npm install kalstatic --save

Usage

Convention

Construct your source files, using the template engine name in the file extension.

src/index.html.jade
---
youAreUsingJade: true
pretty: true
---
doctype html
html(lang="en")
  head
    title= title
  body
    h1 Jade - node template engine

Configuration

KalaStatic can be configured through a kalastatic.yaml file. The default options are as follows:

# The base directory of where the base KalaStatic lives.
base: '.',

# The directory (from base), where the source content files live.
source: 'src',

# Where to build out the files.
destination: 'build',

# The options to pass off to the Metalsmith plugins when building, keyed by plugin name.
pluginOpts: {}

# KSS Styleguide Configuration
kss:
  # Set the path to a custom KSS Builder
  builder: null
  title: "Styleguide"
  homepage: styles/homepage.md
  css: ../styles/main.css
  source:
    - src/components/
    - src/styles/

Build

Globally
$ kalastatic build
Project Dependency
$ node_modules/.bin/kalastatic build

API

KalaStatic can be used a JavaScript API. Calling KalaStatic() will build, and return a Promise.

var KalaStatic = require('kalastatic')
KalaStatic('path/to/site').then(function() {
  // Site built
})

FAQs

Package last updated on 19 Dec 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