You've already forked hugo-extended
mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2025-07-03 13:26:38 -04:00
print Hugo version & environment variables in tests
This commit is contained in:
@ -1,13 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
const path = require('path');
|
||||
const BinWrapper = require('bin-wrapper');
|
||||
const binWrapper = require('bin-wrapper');
|
||||
const { hugoVersion } = require('../package.json');
|
||||
|
||||
const baseUrl = `https://github.com/gohugoio/hugo/releases/download/v${hugoVersion}/`;
|
||||
|
||||
// Default to extended Hugo, fall back to vanilla Hugo on unsupported platforms
|
||||
const extendedBin = new BinWrapper()
|
||||
const extendedBin = new binWrapper()
|
||||
.src(`${baseUrl}hugo_extended_${hugoVersion}_Linux-64bit.tar.gz`, 'linux', 'x64')
|
||||
.src(`${baseUrl}hugo_extended_${hugoVersion}_macOS-64bit.tar.gz`, 'darwin', 'x64')
|
||||
.src(`${baseUrl}hugo_extended_${hugoVersion}_Windows-64bit.zip`, 'win32', 'x64')
|
||||
|
Reference in New Issue
Block a user