@gauntface/hugo-node

1.0.21 • Public • Published

hugo-node-fns

Build and Test Publish

Run hugo commands easily from node.

API

const hugo = require('@gauntface/hugo-node');

const projectPath = "~/example-project/";

// Get the version of hugo in the current environment
const v = await hugo.version();

// Build the site
await hugo.build(projectPath);

// Start, restart and stop server
const flags = ['-D', '--ignoreCache', '--port=1314'];
await hugo.startServer(projectPath, flags);
await hugo.restartServer(projectPath, flags);
await hugo.stopServer();

Readme

Keywords

none

Package Sidebar

Install

npm i @gauntface/hugo-node

Weekly Downloads

26

Version

1.0.21

License

Apache-2.0

Unpacked Size

15.7 kB

Total Files

7

Last publish

Collaborators

  • gauntface