generated from KTH/node-web
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
136 lines (136 loc) · 4.73 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
127
128
129
130
131
132
133
134
135
136
{
"//": "JSHint configuration - http://jshint.com/docs/options/",
"name": "kurs-pm-data-admin-web",
"version": "4.0.0",
"description": "Kurs-pm administation tool and editor to create a kurs-pm by filling in data in editor and fetching data from syllabus",
"main": "app.js",
"license": "MIT",
"author": "KTH",
"repository": {
"type": "git",
"uri": "git+https://github.com/KTH/kurs-pm-data-admin-web.git"
},
"scripts": {
"build": "bash ./build.sh prod",
"build-dev": "bash ./build.sh dev",
"docker": "npm install --development && npm run build && npm prune --production",
"docker:build": "bash ./docker-build-image.sh dev",
"docker:run": "bash ./docker-run-image.sh dev",
"lint": "eslint \"{public,server}/**/*.{js,jsx}\"",
"prepare": "husky install",
"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\"'",
"test": "cross-env NODE_ENV=test jest --testPathIgnorePatterns=test/e2e",
"test:mockapi": "docker-compose -f test/mock-api/docker-compose.yml up --build --force-recreate",
"test-win": "cross-env NODE_ENV=test jest --testPathIgnorePatterns=test/e2e",
"test-preview": "NODE_ENV=test jest ./test/unit/PreviewContainerFilledIn.test.js --watch --notify",
"test-new-memo": "cross-env NODE_ENV=test jest ./test/unit/CreateNewMemo.test.js --watch --notify",
"test-pub-memo": "cross-env NODE_ENV=test jest ./test/unit/ChangePublished.test.js --watch --notify",
"test-edit-new": "cross-env NODE_ENV=test jest ./test/unit/MemoContainerNewDraft.test.js --watch --notify",
"test-edit-published": "cross-env NODE_ENV=test jest ./test/unit/MemoContainerPublished.test.js --watch --notify",
"test-kopps": "NODE_ENV=test jest ./test/unit/kopps-parseSyllabus.test.js --watch --notify",
"test:watch": "NODE_ENV=test jest --watch",
"test:notify": "NODE_ENV=test jest --watch --notify"
},
"dependencies": {
"@babel/runtime": "^7.24.6",
"@kth/api-call": "^4.1.0",
"@kth/appinsights": "^0.4.0",
"@kth/kth-node-passport-oidc": "^5.2.0",
"@kth/kth-node-web-common": "^9.3.1",
"@kth/kth-reactstrap": "^0.4.78",
"@kth/log": "^4.0.7",
"@kth/monitor": "^4.3.1",
"@kth/server": "^4.1.0",
"@kth/session": "^3.0.9",
"@kth/style": "^1.4.2",
"@kth/ug-rest-api-helper": "^1.0.26",
"@tinymce/tinymce-react": "^5.1.1",
"axios": "^1.7.2",
"body-parser": "^1.20.2",
"cookie-parser": "^1.4.6",
"dotenv": "^16.4.5",
"express": "^4.19.2",
"express-handlebars": "^7.1.2",
"kth-node-access-log": "^0.2.9",
"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.3.3",
"mobx": "^6.12.3",
"mobx-react": "^9.1.1",
"passport": "^0.7.0",
"prop-types": "^15.8.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-error-boundary": "^4.0.13",
"react-icons": "^5.2.1",
"react-router": "^6.23.1",
"react-router-dom": "^6.23.1",
"react-router-hash-link": "^2.4.3",
"react-sticky": "^6.0.3",
"reactstrap": "^9.2.2",
"safe-utils": "^1.0.1",
"tinymce": "^7.4.1"
},
"devDependencies": {
"@babel/cli": "^7.24.6",
"@babel/core": "^7.24.6",
"@babel/plugin-transform-runtime": "^7.24.6",
"@babel/preset-env": "^7.24.6",
"@babel/preset-react": "^7.24.6",
"@faker-js/faker": "^8.4.1",
"@kth/eslint-config-kth": "^3.4.0",
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^14.3.1",
"@types/jest": "^29.5.12",
"babel-jest": "^29.7.0",
"babel-loader": "^9.1.3",
"chai": "^5.1.1",
"concurrently": "^8.2.2",
"cross-env": "^7.0.3",
"css-loader": "^6.11.0",
"decache": "^4.6.2",
"eslint": "^8.57.0",
"file-loader": "^6.2.0",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-extended": "^4.0.2",
"lint-staged": "^15.2.5",
"mini-css-extract-plugin": "^2.9.0",
"nock": "^13.5.4",
"node-mocks-http": "^1.14.1",
"node-notifier": "^10.0.1",
"nodemon": "^3.1.2",
"null-loader": "^4.0.1",
"path": "^0.12.7",
"prettier": "^3.2.5",
"sass": "^1.77.3",
"sass-loader": "^14.2.1",
"set-value": "^4.1.0",
"terser-webpack-plugin": "^5.3.10",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
},
"engines": {
"node": "20"
},
"jshintConfig": {
"maxerr": 5
},
"prettier": {
"arrowParens": "avoid",
"printWidth": 120,
"semi": false,
"singleQuote": true,
"trailingComma": "es5",
"tabWidth": 2
},
"lint-staged": {
"**/*.{js,jsx}": [
"npx prettier --write"
]
}
}