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

* feat(hugo): upgrade Hugo to v0.42 * Update package.json
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%