A simple Node wrapper around hugo, the static site generator. It fetches the right hugo executable before piping all provided command line arguments to it.
$ node_modules/.bin/hugo -hINFO hugo not found. Attempting to fetch it...INFO fetched hugo v0.45.1INFO extracting archive...INFO hugo available, let's go!hugo is the main command, used to build your Hugo site.Hugo is a Fast and Flexible Static Site Generatorbuilt with love by spf13 and friends in Go.Complete documentation is available at .Usage:hugo [flags]hugo [command]...
Add to your build scripts in
package.json to build you site from NodeJS:
Execute directly via
npx hugo-cli server