Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidofferman/hugo-bin
Hugo wrapper that makes it available as a local dependency.
https://github.com/davidofferman/hugo-bin
hugo npm-package
Last synced: 8 days ago
JSON representation
Hugo wrapper that makes it available as a local dependency.
- Host: GitHub
- URL: https://github.com/davidofferman/hugo-bin
- Owner: davidofferman
- License: mit
- Created: 2019-08-11T15:46:58.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-01-23T06:13:19.000Z (about 3 years ago)
- Last Synced: 2025-01-23T09:42:35.587Z (14 days ago)
- Topics: hugo, npm-package
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@davidofferman/hugo-bin
- Size: 65.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hugo-bin
> [Hugo](https://gohugo.io/) 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-..`.
## Install
```
$ npm install --save @davidofferman/hugo-bin
```## Usage
```js
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
```