mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2025-07-03 13:26:38 -04:00
a10898b0023d8db1b1079fc647de44499e04ea7f

* Travis CI: add Node.js 10.x. * Move eslint mocha where it's needed. * Update devDependencies. Notes: * package-lock.json is saved with npm 6.3.1, the one that ships with node.js 10.x * eslint 5.x doesn't support node.js 4.x, so don't update it
hugo-bin 
Binary wrapper for Hugo
Install
npm install --save-dev hugo-bin
Usage
API
const execFile = require('child_process').execFile;
const hugo = require('hugo-bin');
execFile(hugo, ['version'], (err, stdout) => {
console.log(stdout);
});
CLI
$(npm bin)/hugo --help
npm run create -- 'post/my-new-post' # see below 'npm-run-script'
npm-run-script
{
"scripts": {
"build": "hugo",
"create": "hugo new",
"serve": "hugo server -ws"
}
}
See the Hugo Documentation for more information.
Supported versions
See the package.json commit histories.
Full example
Super Inspired By
License
MIT © Shun Sato
Languages
JavaScript
100%