diff --git a/.travis.yml b/.travis.yml index 2fdcb40..380b3d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,13 @@ language: node_js sudo: false node_js: - - 6 - - 7 - 8 - 9 - 10 + - 11 + - 12 + - 13 + - 14 os: - linux diff --git a/README.md b/README.md index 3846e52..808e30f 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ commands, providing an easy solution for simple Unix-like, cross-platform commands in npm package scripts. -`shx` is proudly tested on every node release since `v6`! +`shx` is proudly tested on every node release since `v8`! ## Difference Between ShellJS and shx diff --git a/appveyor.yml b/appveyor.yml index 3c71949..742966e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,10 +1,12 @@ environment: matrix: + - nodejs_version: '14' + - nodejs_version: '13' + - nodejs_version: '12' + - nodejs_version: '11' - nodejs_version: '10' - nodejs_version: '9' - nodejs_version: '8' - - nodejs_version: '7' - - nodejs_version: '6' version: '{build}' diff --git a/package.json b/package.json index 3ca86e5..20f5190 100644 --- a/package.json +++ b/package.json @@ -75,6 +75,6 @@ "shelljs": "^0.8.4" }, "engines": { - "node": ">=6" + "node": ">=8" } } diff --git a/scripts/check-node-support.js b/scripts/check-node-support.js index 96016b2..9209950 100755 --- a/scripts/check-node-support.js +++ b/scripts/check-node-support.js @@ -8,8 +8,8 @@ var yaml = require('js-yaml'); var shell = require('shelljs'); // This is the authoritative list of supported node versions. -var MIN_NODE_VERSION = 6; -var MAX_NODE_VERSION = 10; +var MIN_NODE_VERSION = 8; +var MAX_NODE_VERSION = 14; function checkReadme(minNodeVersion) { var start = ''; @@ -78,6 +78,8 @@ try { var appveyorFileName = path.join(__dirname, '..', 'appveyor.yml'); var appveyorYaml = yaml.safeLoad(shell.cat(appveyorFileName)); checkAppveyor(MIN_NODE_VERSION, MAX_NODE_VERSION, appveyorYaml); + console.log('All files look good (this project supports v' + + MIN_NODE_VERSION + '-v' + MAX_NODE_VERSION + ')!'); } catch (e) { console.error('Please check the files which declare our Node version'); console.error('support, as something is out-of-sync. This script failed');