You've already forked hugo-extended
mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2026-06-13 01:45:29 -04:00
run tests on Node 16
This commit is contained in:
@@ -16,6 +16,7 @@ jobs:
|
|||||||
- macos-latest
|
- macos-latest
|
||||||
- windows-latest
|
- windows-latest
|
||||||
node:
|
node:
|
||||||
|
- 16
|
||||||
- 14
|
- 14
|
||||||
- 12
|
- 12
|
||||||
- 10
|
- 10
|
||||||
|
|||||||
@@ -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.
|
// Hugo Extended supports: macOS x64, macOS ARM64, Linux x64, Windows x64.
|
||||||
// all other combos fall back to vanilla Hugo.
|
// all other combos fall back to vanilla Hugo.
|
||||||
|
|
||||||
/* eslint-disable indent, operator-linebreak, unicorn/no-nested-ternary */
|
|
||||||
module.exports =
|
module.exports =
|
||||||
process.platform === 'darwin' && process.arch === 'x64'
|
process.platform === 'darwin' && process.arch === 'x64'
|
||||||
? `${baseUrl}hugo_extended_${version}_macOS-64bit.tar.gz` :
|
? `${baseUrl}hugo_extended_${version}_macOS-64bit.tar.gz` :
|
||||||
@@ -49,4 +48,3 @@ module.exports =
|
|||||||
? `${baseUrl}hugo_${version}_OpenBSD-ARM64.tar.gz` :
|
? `${baseUrl}hugo_${version}_OpenBSD-ARM64.tar.gz` :
|
||||||
|
|
||||||
null;
|
null;
|
||||||
/* eslint-enable indent, operator-linebreak, unicorn/no-nested-ternary */
|
|
||||||
|
|||||||
Generated
+511
-14367
File diff suppressed because it is too large
Load Diff
+11
-7
@@ -37,12 +37,12 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"bin-check": "^4.1.0",
|
"bin-check": "^4.1.0",
|
||||||
"mocha": "^8.3.2",
|
"eslint": "^7.27.0",
|
||||||
"xo": "^0.39.1"
|
"mocha": "^8.4.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "node lib/install.js",
|
"postinstall": "node lib/install.js",
|
||||||
"test": "xo && mocha && node cli.js env"
|
"test": "eslint \"**/*.js\" && mocha && node cli.js env"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10"
|
"node": ">=10"
|
||||||
@@ -55,10 +55,14 @@
|
|||||||
"bin": {
|
"bin": {
|
||||||
"hugo": "cli.js"
|
"hugo": "cli.js"
|
||||||
},
|
},
|
||||||
"xo": {
|
"eslintConfig": {
|
||||||
"space": true,
|
"extends": "eslint:recommended",
|
||||||
"rules": {
|
"parserOptions": {
|
||||||
"object-curly-spacing": "off"
|
"ecmaVersion": 8,
|
||||||
|
"sourceType": "module"
|
||||||
|
},
|
||||||
|
"env": {
|
||||||
|
"node": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
/* eslint-env mocha */
|
/* eslint-env node, mocha */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user