Hugo
Hugo is one of the most popular static site generators. In the world of web development we usually choose npm as our dependency management solution. Hugo, however, is written in Go - and thus not integrated into the npm module ecosystem. Instead, users are asked to install Hugo globally on their systems.
By doing so however, your project users could be using different Hugo versions. However, if Hugo is installed locally in your project, your project users will always use the same Hugo version.
Hugo Installer
Hyas uses Hugo Installer to install Hugo locally in your project. It’s a small Node.js script which you can use to fetch the correct Hugo binary for your system, e.g. via a postinstall
hook within a package.json
file.
Features include:
- Compatible with all operating systems and system architectures (Windows, MacOS, Linux, …, CI/CD)
- Supports all Hugo versions, including extended version
- Verifies checksum & runs health check when installing
- Recognizes already downloaded binaries
Resources
Credits
The text on this page is (heavily) based on the What it does section of Hugo Installer’s README.md.