-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
126 lines (126 loc) · 4.07 KB
/
package.json
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"name": "node-web",
"version": "2.0.0",
"description": "Node Web is a frontend service used together with node-api. It is also a template for Node Web applications developed at KTH.",
"private": true,
"license": "MIT",
"author": "KTH",
"repository": {
"type": "git",
"uri": "https://github.com/KTH/node-web"
},
"scripts": {
"prettier:all": "prettier --write \"**/*.js\" \"**/*.jsx\" \"**/*.scss\"",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"build": "bash ./build.sh prod",
"build-dev": "bash ./build.sh dev",
"start": "bash -c 'cat /KTH_NODEJS; NODE_ENV=production node app.js'",
"start-dev": "bash -c 'NODE_ENV=development concurrently --kill-others -n build,app \"npm run build-dev\" \"nodemon app.js\"'",
"lint": "eslint \"{public,server}/**/*.{js,jsx}\" --quiet",
"lint-v": "eslint \"{public,server}/**/*.{js,jsx}\" ",
"prepare": "husky",
"postinstall": "bash -c 'rm -rf ./dist; rm -rf ./node_modules/.cache/webpack'",
"test:integration": "node test/integration/check-_paths.js http://localhost:3000/node",
"test:integration-in-docker": "docker build --progress plain -t node-web . && bash -c 'LOCAL_IMAGE_ID=node-web docker-compose -f docker-compose-integration-tests.yml up --abort-on-container-exit --build --no-log-prefix --remove-orphans --always-recreate-deps --force-recreate'"
},
"dependencies": {
"@babel/runtime": "^7.26.0",
"@kth/api-call": "^4.1.0",
"@kth/appinsights": "^0.4.0",
"@kth/cortina-block": "^6.2.0",
"@kth/kth-node-passport-oidc": "^5.2.0",
"@kth/kth-node-web-common": "^9.5.0",
"@kth/log": "^4.0.7",
"@kth/monitor": "^4.3.1",
"@kth/session": "^3.0.9",
"@kth/style": "^1.9.0",
"body-parser": "^1.20.3",
"cookie-parser": "^1.4.7",
"dotenv": "^16.4.7",
"express": "^4.21.2",
"express-handlebars": "^7.1.3",
"kth-node-access-log": "^0.2.10",
"kth-node-configuration": "^2.1.0",
"kth-node-express-routing": "^2.2.0",
"kth-node-i18n": "^1.0.18",
"kth-node-redis": "^3.3.0",
"kth-style": "^10.4.0",
"passport": "^0.7.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.28.1"
},
"devDependencies": {
"@babel/cli": "^7.26.4",
"@babel/core": "^7.26.0",
"@babel/plugin-transform-runtime": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@babel/preset-react": "^7.26.3",
"@kth/eslint-config-kth": "^3.6.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@types/jest": "^29.5.14",
"ansi-regex": "^6.1.0",
"babel-loader": "^9.2.1",
"browserslist": "^4.24.3",
"caniuse-lite": "^1.0.30001690",
"concurrently": "^9.1.0",
"css-loader": "^7.1.2",
"eslint": "^8.57.1",
"eslint-plugin-prettier": "^5.2.1",
"file-loader": "^6.2.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-extended": "^4.0.2",
"jest-sonar-reporter": "^2.0.0",
"lint-staged": "^15.2.11",
"mini-css-extract-plugin": "^2.9.2",
"nodemon": "^3.1.9",
"null-loader": "^4.0.1",
"prettier": "^3.4.2",
"sass": "^1.83.0",
"sass-loader": "^16.0.4",
"set-value": "^4.1.0",
"terser-webpack-plugin": "^5.3.11",
"webpack": "^5.97.1",
"webpack-cli": "^5.1.4"
},
"prettier": {
"arrowParens": "avoid",
"printWidth": 120,
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
},
"babel": {
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-transform-runtime"
]
},
"jest": {
"clearMocks": true,
"notifyMode": "failure-change",
"setupFilesAfterEnv": [
"jest-extended"
],
"verbose": true,
"testEnvironment": "jsdom",
"resolver": "./test/resolver.js",
"collectCoverageFrom": [
"{public,server}/**/*.{js,jsx}"
],
"coverageDirectory": "./test/coverage",
"testResultsProcessor": "jest-sonar-reporter"
},
"jestSonar": {
"reportPath": "./test/reports",
"reportFile": "test-reporter.xml"
}
}