You've already forked hugo-extended
mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2026-06-13 00:35:28 -04:00
run tests on Node 16
This commit is contained in:
@@ -16,6 +16,7 @@ jobs:
|
||||
- macos-latest
|
||||
- windows-latest
|
||||
node:
|
||||
- 16
|
||||
- 14
|
||||
- 12
|
||||
- 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.
|
||||
// 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 */
|
||||
|
||||
Generated
+511
-14367
File diff suppressed because it is too large
Load Diff
+11
-7
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
/* eslint-env mocha */
|
||||
/* eslint-env node, mocha */
|
||||
|
||||
'use strict';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user