Merge pull request #558 from mz8i/feature/node-12

Update node to v12.14.1
This commit is contained in:
Maciej Ziarkowski 2020-01-24 17:18:58 +00:00 committed by GitHub
commit f6147ead9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 11 deletions

View File

@ -1,6 +1,6 @@
language: node_js language: node_js
node_js: node_js:
- 8 - 12
cache: npm cache: npm
before_script: before_script:
- cd $TRAVIS_BUILD_DIR/app && npm ci - cd $TRAVIS_BUILD_DIR/app && npm ci

6
app/package-lock.json generated
View File

@ -1189,9 +1189,9 @@
"dev": true "dev": true
}, },
"@types/node": { "@types/node": {
"version": "8.10.59", "version": "12.12.25",
"resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.59.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.25.tgz",
"integrity": "sha512-8RkBivJrDCyPpBXhVZcjh7cQxVBSmRk9QM7hOketZzp6Tg79c0N8kkpAIito9bnJ3HCVCHVYz+KHTEbfQNfeVQ==", "integrity": "sha512-nf1LMGZvgFX186geVZR1xMZKKblJiRfiASTHw85zED2kI1yDKHDwTKMdkaCbTlXoRKlGKaDfYywt+V0As30q3w==",
"dev": true "dev": true
}, },
"@types/nodemailer": { "@types/nodemailer": {

View File

@ -44,7 +44,7 @@
"@types/jest": "^24.0.23", "@types/jest": "^24.0.23",
"@types/lodash": "^4.14.149", "@types/lodash": "^4.14.149",
"@types/mapbox__sphericalmercator": "^1.1.3", "@types/mapbox__sphericalmercator": "^1.1.3",
"@types/node": "^8.10.59", "@types/node": "^12.12.25",
"@types/nodemailer": "^6.2.2", "@types/nodemailer": "^6.2.2",
"@types/prop-types": "^15.7.3", "@types/prop-types": "^15.7.3",
"@types/react": "^16.9.16", "@types/react": "^16.9.16",

View File

@ -37,7 +37,7 @@ Now clone the colouring london codebase.
Now install Node. It is helpful to define some local variables. Now install Node. It is helpful to define some local variables.
``` ```
NODE_VERSION=v8.11.3 NODE_VERSION=v12.14.1
DISTRO=linux-x64 DISTRO=linux-x64
wget -nc https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-$DISTRO.tar.xz wget -nc https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-$DISTRO.tar.xz
sudo mkdir /usr/local/lib/node sudo mkdir /usr/local/lib/node
@ -137,7 +137,7 @@ root user profile. Don't forget to exit from root at the end.
``` ```
sudo su root sudo su root
export NODEJS_HOME=/usr/local/lib/node/node-v8.11.3/bin/` export NODEJS_HOME=/usr/local/lib/node/node-v12.14.1/bin/`
export PATH=$NODEJS_HOME:$PATH` export PATH=$NODEJS_HOME:$PATH`
npm install -g npm@next` npm install -g npm@next`
exit exit

View File

@ -72,7 +72,7 @@ Now set appropriate permissions on the `colouring-london` directory
First define a couple of convenience variables: First define a couple of convenience variables:
`NODE_VERSION=v8.11.3` `NODE_VERSION=v12.14.1`
`DISTRO=linux-x64` `DISTRO=linux-x64`
@ -111,7 +111,7 @@ Now upgrade the `npm` package manager to the most recent release with global pri
`sudo su root` `sudo su root`
`export NODEJS_HOME=/usr/local/lib/node/node-v8.11.3/bin/` `export NODEJS_HOME=/usr/local/lib/node/node-v12.14.1/bin/`
`export PATH=$NODEJS_HOME:$PATH` `export PATH=$NODEJS_HOME:$PATH`
@ -244,7 +244,7 @@ Perform a global install of PM2
`sudo su root` `sudo su root`
`export NODEJS_HOME=/usr/local/lib/node/node-v8.11.3/bin/` `export NODEJS_HOME=/usr/local/lib/node/node-v12.14.1/bin/`
`export PATH=$NODEJS_HOME:$PATH` `export PATH=$NODEJS_HOME:$PATH`

View File

@ -40,7 +40,7 @@ apt-get install -y \
# #
# node version and platform # node version and platform
NODE_VERSION=v8.11.3 NODE_VERSION=v12.14.1
DISTRO=linux-x64 DISTRO=linux-x64
# download # download