-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
79 lines (79 loc) · 2.94 KB
/
package.json
File metadata and controls
79 lines (79 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"name": "node-api",
"version": "2.0.0",
"description": "Node API is the backend service for node-web. It is also a template for Node API applications developed at KTH.",
"private": true,
"scripts": {
"lint": "eslint --quiet",
"lint-v": "eslint",
"prettier:all": "prettier --write \"**/*.js\"",
"test": "jest",
"test:watch": "jest --watch",
"test:unit-in-docker": "docker build --progress plain -t node-api . && bash -c 'LOCAL_IMAGE_ID=node-api docker-compose -f docker-compose-unit-tests.yml* up --abort-on-container-exit --build --remove-orphans'",
"test:integration": "cd test/integration && bash -c 'INTEGRATION_TEST_BASEURL=http://localhost:3001/api/node ./all-tests.sh'",
"test:integration-in-docker": "docker build --progress plain -t node-api . && bash -c 'LOCAL_IMAGE_ID=node-api SUCCESS_DELAY=5000 docker-compose -f docker-compose-integration-tests.yml* up --abort-on-container-exit --build --remove-orphans'",
"test:coverage": "jest --coverage",
"validate:swagger": "node ./test/swagger-validate.js",
"validate:swagger-watch": "nodemon --watch swagger.json ./test/swagger-validate.js",
"start": "bash -c '/wait; cat /KTH_NODEJS; NODE_ENV=production node app.js'",
"start-dev": "bash -c 'NODE_ENV=development nodemon app.js'",
"prepare": "husky"
},
"dependencies": {
"@hokify/agenda": "^6.3.0",
"@kth/appinsights": "^0.6.0",
"@kth/log": "^4.0.8",
"@kth/monitor": "^4.3.2",
"cookie-parser": "^1.4.7",
"dotenv": "^16.6.1",
"express": "^4.22.1",
"kth-node-access-log": "^0.2.10",
"kth-node-api-common": "^1.0.10",
"kth-node-api-key-strategy": "^2.0.3",
"kth-node-configuration": "^2.1.0",
"kth-node-express-routing": "^2.3.1",
"mongoose": "^8.23.0",
"passport": "^0.7.0",
"swagger-ui-dist": "^5.32.0"
},
"devDependencies": {
"@apidevtools/swagger-parser": "^12.1.0",
"@kth/eslint-config-kth": "^4.0.0-1",
"@types/jest": "^29.5.14",
"eslint": "^9.39.3",
"husky": "^9.1.7",
"jest": "^29.7.0",
"jest-extended": "^7.0.0",
"jest-sonar-reporter": "^2.0.0",
"lint-staged": "^16.3.2",
"nodemon": "^3.1.14",
"prettier": "^3.8.1"
},
"// (prettier)": "configuration version 2020-06-15 - might also reside in .prettierrc.json",
"prettier": {
"arrowParens": "avoid",
"printWidth": 120,
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
},
"// (jest)": "configuration version 2020-06-15 (API+NPM) - might also reside as module.exports in jest.config.js",
"jest": {
"clearMocks": true,
"notifyMode": "failure-change",
"setupFilesAfterEnv": [
"jest-extended/all"
],
"testEnvironment": "node",
"verbose": true,
"collectCoverageFrom": [
"server/**/*.js"
],
"coverageDirectory": "./test/coverage",
"testResultsProcessor": "jest-sonar-reporter"
},
"jestSonar": {
"reportPath": "./test/reports",
"reportFile": "test-reporter.xml"
}
}