[BREAKING CHANGE] Require Node.js >= 10

- Several deps started requiring it
- CI started breaking on Node 8
- Node 8 is end-of-life, no longer maintained
- Even latest Debian stable and Ubuntu LTS ship Node 10:
    https://packages.debian.org/search?suite=stable&keywords=nodejs
    https://packages.ubuntu.com/search?searchon=names&suite=all&section=all&keywords=nodejs

So, requiring Node 10 and npm 6 going with it.
This commit is contained in:
Ronan Jouchet 2020-06-13 10:46:27 -04:00
parent e5ba8c779f
commit 8fa394a1c0
2 changed files with 8 additions and 8 deletions

View File

@ -4,15 +4,15 @@ os:
- osx - osx
- windows - windows
node_js: node_js:
- '13' - '14' # Changing this? Remind to keep linter+deploy conditions below aligned
- '12' # Changing this? Remind to keep linter+deploy conditions below aligned - '12'
- '8' - '10'
install: install:
- npm run dev-up - npm run dev-up
- npm run build - npm run build
script: script:
# Only run linter once, for faster CI. Remind to keep linter+deploy conditions below aligned # Only run linter once, for faster CI. Remind to keep linter+deploy conditions below aligned
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_NODE_VERSION" = "12" ]; then npm run lint; fi - if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_NODE_VERSION" = "14" ]; then npm run lint; fi
- npm test - npm test
# https://docs.travis-ci.com/user/deployment # https://docs.travis-ci.com/user/deployment
deploy: deploy:
@ -24,5 +24,5 @@ deploy:
on: on:
tags: true tags: true
repo: jiahaog/nativefier repo: jiahaog/nativefier
node_js: '12' # Remind to keep linter+deploy conditions above aligned node_js: '14' # Remind to keep linter+deploy conditions above aligned
condition: '$TRAVIS_OS_NAME = linux' condition: '$TRAVIS_OS_NAME = linux'

View File

@ -5,8 +5,8 @@
"license": "MIT", "license": "MIT",
"author": "Goh Jia Hao", "author": "Goh Jia Hao",
"engines": { "engines": {
"node": ">= 8.10.0", "node": ">= 10.0.0",
"npm": ">= 5.6.0" "npm": ">= 6.0.0"
}, },
"keywords": [ "keywords": [
"desktop", "desktop",
@ -84,7 +84,7 @@
"jest": "26.x", "jest": "26.x",
"prettier": "2.x", "prettier": "2.x",
"rimraf": "3.x", "rimraf": "3.x",
"ts-loader": "6.x", "ts-loader": "7.x",
"typescript": "3.x", "typescript": "3.x",
"webpack": "4.x", "webpack": "4.x",
"webpack-cli": "3.x" "webpack-cli": "3.x"