1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-04-26 13:28:28 -04:00

run tests on Node 16

This commit is contained in:
Jake Jarvis 2021-05-24 12:23:39 -04:00
parent 457359659c
commit a0aaabb804
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
5 changed files with 524 additions and 14377 deletions

View File

@ -16,6 +16,7 @@ jobs:
- macos-latest
- windows-latest
node:
- 16
- 14
- 12
- 10

View File

@ -9,7 +9,6 @@ const baseUrl = `https://github.com/gohugoio/hugo/releases/download/v${version}/
// Hugo Extended supports: macOS x64, macOS ARM64, Linux x64, Windows x64.
// all other combos fall back to vanilla Hugo.
/* eslint-disable indent, operator-linebreak, unicorn/no-nested-ternary */
module.exports =
process.platform === 'darwin' && process.arch === 'x64'
? `${baseUrl}hugo_extended_${version}_macOS-64bit.tar.gz` :
@ -49,4 +48,3 @@ module.exports =
? `${baseUrl}hugo_${version}_OpenBSD-ARM64.tar.gz` :
null;
/* eslint-enable indent, operator-linebreak, unicorn/no-nested-ternary */

14878
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -37,12 +37,12 @@
},
"devDependencies": {
"bin-check": "^4.1.0",
"mocha": "^8.3.2",
"xo": "^0.39.1"
"eslint": "^7.27.0",
"mocha": "^8.4.0"
},
"scripts": {
"postinstall": "node lib/install.js",
"test": "xo && mocha && node cli.js env"
"test": "eslint \"**/*.js\" && mocha && node cli.js env"
},
"engines": {
"node": ">=10"
@ -55,10 +55,14 @@
"bin": {
"hugo": "cli.js"
},
"xo": {
"space": true,
"rules": {
"object-curly-spacing": "off"
"eslintConfig": {
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
},
"env": {
"node": true
}
}
}

View File

@ -1,4 +1,4 @@
/* eslint-env mocha */
/* eslint-env node, mocha */
'use strict';