1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-07-03 14:36:38 -04:00

remove signale dependency

This commit is contained in:
2020-01-31 11:20:05 -05:00
parent a0a61c0d60
commit 9b1434b0b2
4 changed files with 15 additions and 125 deletions

View File

@ -7,7 +7,7 @@ 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 hugoBin = 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')
@ -24,5 +24,5 @@ const extendedBin = new binWrapper()
// TODO: download checksums.txt file and validate package integrity
module.exports = function () {
return extendedBin;
return hugoBin;
};

View File

@ -1,7 +1,6 @@
'use strict';
const path = require('path');
const signale = require('signale');
const bin = require('.');
function getProjectRoot() {
@ -26,8 +25,8 @@ function getProjectRoot() {
bin(getProjectRoot()).run(['version'])
.then(() => {
signale.success('Hugo binary installed successfully!');
console.log('Hugo installed successfully!');
})
.catch(error => {
signale.fatal(`${error.message}\nHugo binary installation failed!`);
console.error(error + '✖ ERROR: Hugo installation failed. :(');
});