Skip to content

Commit 138b7b0

Browse files
committed
Updates to Node 12 (major)
1 parent f309f23 commit 138b7b0

File tree

4 files changed

+6
-18
lines changed

4 files changed

+6
-18
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: node_js
22
node_js:
3-
- "10"
3+
- "12"
44
after_success:
55
- npm run coveralls

Dockerfile

+2-14
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1-
###########################################################
2-
#
3-
# Dockerfile for bigfive-web
4-
#
5-
###########################################################
6-
7-
# Setting the base to nodejs 10
8-
FROM mhart/alpine-node:10@sha256:1ac930aaade19bde55e81d74eab7cab09229e33926f42ffd235b5dab10fe99ad
9-
10-
# Maintainer
11-
MAINTAINER Jonas Enge
12-
13-
#### Begin setup ####
1+
FROM mhart/alpine-node:12
142

153
# Extra tools for native dependencies
164
RUN apk add --no-cache make gcc g++ python git
@@ -19,7 +7,7 @@ RUN apk add --no-cache make gcc g++ python git
197
COPY . /src
208

219
# Change working directory
22-
WORKDIR "/src"
10+
WORKDIR /src
2311

2412
# Install dependencies
2513
RUN npm install --production

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"main": "server.js",
1919
"engines": {
20-
"node": ">=10.18.1"
20+
"node": ">=12.14.1"
2121
},
2222
"scripts": {
2323
"test": "standard && npm audit && ava",

pages/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default class extends Component {
6565
}
6666
}
6767

68-
clearAnswers () {
68+
handleClearAnswers () {
6969
clearItems()
7070
window.location.reload(true)
7171
}
@@ -144,7 +144,7 @@ export default class extends Component {
144144
</div>
145145
<ProgressBar progress={progress} />
146146
{
147-
restore && <p onClick={this.clearAnswers} style={{ color: '#FF0080', marginTop: '10px', cursor: 'pointer' }}><FaInfoCircle /> Your state is restored from LocalStorage. Click here to start over again.</p>
147+
restore && <p onClick={this.handleClearAnswers} style={{ color: '#FF0080', marginTop: '10px', cursor: 'pointer' }}><FaInfoCircle /> Your state is restored from LocalStorage. Click here to start over again.</p>
148148
}
149149
{items.map(item =>
150150
<div key={item.id} className={lang === 'ur' ? 'item inverted-text' : 'item'}>

0 commit comments

Comments
 (0)