Skip to content
Hugo wrapper that makes it available as a local dependency.
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
LICENSE
README.md
cli.js
index.js
package.json

README.md

hugo-bin

Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again.

Version

The version of this package does not relate to the Hugo release version. There will be dist-tags on the npm package in the format of hugo-<major>.<minor>.<patch>.

Install

$ npm install --save @davidofferman/hugo-bin
$ npm install --save @davidofferman/hugo-bin@hugo-0.65.3

Usage

const util = require('util');
const cp = require('child_process');
const hugo = require('@davidofferman/hugo-bin');

const execFile = util.promisify(cp.execFile);

(async () => {
	await execFile(hugo, ["--destination", "dist"]);
	console.log('Hugo built to "dist"');
})();

CLI

$ npm install --global @davidofferman/hugo-bin
$ hugo --help
You can’t perform that action at this time.