Skip to content

Commit 99046fb

Browse files
committed
bump nodejs to 14
1 parent a6c2cf0 commit 99046fb

File tree

8 files changed

+768
-748
lines changed

8 files changed

+768
-748
lines changed

.env.sample

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ METRICS_IP_WHITELIST=*
2222
# Winston-loki default url is empty
2323
# WINSTON_LOKI_URL=
2424
# WINSTON_LOKI_BASIC_AUTH=
25-
WINSTON_LOKI_APP_NAME=myApp
26-
WINSTON_LOKI_BATCHING=false
25+
# WINSTON_LOKI_APP_NAME=myApp
26+
# WINSTON_LOKI_BATCHING=false

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Set up Node.js
1212
uses: actions/setup-node@master
1313
with:
14-
node-version: 12.4.0
14+
node-version: 14
1515
- run: cp .env.sample .env
1616
- run: yarn install --frozen-lockfile
1717
- run: yarn run build:docker

.github/workflows/publish.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up Node.js
1515
uses: actions/setup-node@master
1616
with:
17-
node-version: 12.4.0
17+
node-version: 14
1818
- run: cp .env.sample .env
1919
- uses: azure/docker-login@v1
2020
with:

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
14

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:12.13-alpine as dev
1+
FROM node:14.15-alpine as dev
22

33
RUN apk update && apk add --no-cache libpq postgresql-dev g++ make python && rm -rf /var/cache/apk/*
44

@@ -14,7 +14,7 @@ COPY . .
1414

1515
RUN yarn run build
1616

17-
FROM node:12.13-alpine as production
17+
FROM node:14.15-alpine as production
1818

1919
RUN apk update && apk add --no-cache libpq postgresql-dev g++ make python && rm -rf /var/cache/apk/*
2020

package.json

+26-23
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"Marin Petrunić <[email protected]>",
77
"Belma Gutlić <[email protected]>"
88
],
9+
"engines": {
10+
"node": "14.x"
11+
},
912
"license": "MIT",
1013
"scripts": {
1114
"start:dev": "npx task dev",
@@ -56,32 +59,32 @@
5659
"winston-loki": "6.0.0-rc.9"
5760
},
5861
"devDependencies": {
59-
"@types/chai": "^4.1.7",
60-
"@types/faker": "^4.1.11",
61-
"@types/mocha": "^5.2.7",
62-
"@types/node": "^12.12.20",
62+
"@types/chai": "^4.2.14",
63+
"@types/faker": "^5.1.5",
64+
"@types/mocha": "^8.2.0",
65+
"@types/node": "^14.14.22",
6366
"@types/node-cleanup": "^2.1.1",
64-
"@types/sinon": "^7.0.13",
65-
"@types/supertest": "^2.0.5",
66-
"@typescript-eslint/eslint-plugin": "^2.12.0",
67-
"@typescript-eslint/parser": "^2.12.0",
67+
"@types/sinon": "^9.0.10",
68+
"@types/supertest": "^2.0.10",
69+
"@typescript-eslint/eslint-plugin": "^4.14.0",
70+
"@typescript-eslint/parser": "^4.14.0",
6871
"chai": "^4.2.0",
69-
"coveralls": "^3.0.2",
70-
"cross-env": "^7.0.2",
71-
"dotenv": "^5.0.1",
72-
"env-prompt": "^1.0.7",
73-
"eslint": "^6.7.2",
74-
"mocha": "^6.1.4",
75-
"nodemon": "^2.0.2",
76-
"nyc": "^15.0.1",
77-
"sinon": "^7.3.2",
78-
"supertest": "^3.1.0",
79-
"tasksfile": "5.1.0",
80-
"ts-node": "^8.5.4",
81-
"typescript": "^3.7.3",
82-
"typescript-eslint-parser": "^18.0.0"
72+
"coveralls": "^3.1.0",
73+
"cross-env": "^7.0.3",
74+
"dotenv": "^8.2.0",
75+
"env-prompt": "^1.2.3",
76+
"eslint": "^7.18.0",
77+
"mocha": "^8.2.1",
78+
"nodemon": "^2.0.7",
79+
"nyc": "^15.1.0",
80+
"sinon": "^9.2.3",
81+
"supertest": "^6.1.1",
82+
"tasksfile": "5.1.1",
83+
"ts-node": "^9.1.1",
84+
"typescript": "^4.1.3",
85+
"typescript-eslint-parser": "^22.0.0"
8386
},
8487
"resolutions": {
85-
"lodash": "4.17.19"
88+
"lodash": "4.17.20"
8689
}
8790
}

tsconfig.json

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
"./@types"
1616
]
1717
},
18+
"ts-node": {
19+
"transpileOnly": true,
20+
"files": true
21+
},
1822
"include": [
1923
"src/**/*.ts",
2024
"test/**/*.ts",

0 commit comments

Comments
 (0)