build

Build engine module

Source:

Methods

(static) _run(cmd, model, done)

Takes a command template and a model, tokenizes the model, runs the command, and calls the callback.

The following tokens are availble: owner, repository, branch, token (GitHub access token), source (temporary build directory), destination (final destination for build site).

The source directory should be deleted after build completes.

Parameters:
Name Type Description
cmd Array

array of string templates, each item is a command

model Build

build model to parse

done function

callback function

Source:

(static) hugo(model, done)

Hugo build task for execution on Windows

Parameters:
Name Type Description
model Build

build model to parse

done function

callback function

Source:

(static) jekyll(model, done)

Jekyll build task for execution on Windows

Parameters:
Name Type Description
model Build

build model to parse

done function

callback function

Source:

(static) publish(tokens, model, done)

Publish a built site by copiting it to its publish directory or pushing it to an Azure Web App

Parameters:
Name Type Description
tokens Object

tokens from the _run command

model Build

build model to parse

done function

callback function

Source:

(static) static(model, done)

Static build task for execution on Windows

Parameters:
Name Type Description
model Build

build model to parse

done function

callback function

Source: