![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
kalastatic
Advanced tools
Static site application framework for prototyping and styleguiding.
$ npm install kalastatic --save
Construct your source files, using the template engine name in the file extension. The following example uses the Pug template engine, but others are available (Twig, Mustache, etc).
---
pretty: true
title: Hello World!
---
doctype html
html(lang="en")
head
title= title
body
h1= title
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: .
# What BrowserSync should consider the index page.
bsIndex: 'index.html'
# What BrowserSync should consider the webroot when running KalaStatic.
# Defaults to the KalaStatic destination directory.
bsWebroot: ''
# Whether or not to open the browser when initially running Kalastatic.
bsBrowser: false
# The directory (from base), where the source content files live.
source: src
# Where the files will be built out to.
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/
KalaStatic can be used as a command line interface. The following are some of its commands:
Runs through the KalaStatic build tasks and outputs to the destination folder.
node_modules/.bin/kalastatic build
Starts up a development server through BrowserSync in order to watch and serve KalaStatic. Changes you make to the source will automatically reflect in the browser.
node_modules/.bin/kalastatic start
While you can run kalastatic
as a CLI application, it is recommended to run the above commands through the use of npm scripts in package.json
:
"scripts": {
"test": "kalastatic build",
"start": "kalastatic start"
}
Then you can simply run the following commands to interact with your project:
npm test
npm start
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
})
For more in depth documentation go to http://kalastatic.readthedocs.io
4.1.0-alpha.2: 2018-08-29
kstat-kss-builder@2.0.0
FAQs
KalaStatic static-site prototyping framework
The npm package kalastatic receives a total of 31 weekly downloads. As such, kalastatic popularity was classified as not popular.
We found that kalastatic demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.