-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathpackage.json
204 lines (204 loc) · 8.88 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
{
"name": "odf-plugin",
"version": "0.0.0",
"private": true,
"description": "ODF plugin",
"repository": "[email protected]:red-hat-storage/odf-console.git",
"license": "Apache-2.0",
"workspaces": [
"packages/*"
],
"scripts": {
"analyze-client": "PLUGIN=client yarn analyze-common && PLUGIN=client yarn tsx ./analyzeTest.ts",
"analyze-common": "yarn build:generate && NODE_ENV=production I8N_NS=${I8N_NS} ANALYZE_BUNDLE=true yarn tsx ./node_modules/.bin/webpack -c ./webpack.config.ts",
"analyze-mco": "PLUGIN=mco yarn analyze-common && PLUGIN=mco yarn tsx ./analyzeTest.ts",
"analyze-odf": "PLUGIN=odf yarn analyze-common && PLUGIN=odf yarn tsx ./analyzeTest.ts",
"build": "NODE_ENV=production PLUGIN=odf I8N_NS=plugin__odf-console yarn build:plugin",
"build:generate": "yarn clean-${PLUGIN} && tsx ./scripts/versionCheck.mts --plugin ${PLUGIN} && tsx ./scripts/generatePluginPackage.mts --plugin ${PLUGIN}",
"build:plugin": "yarn build:generate && NODE_OPTIONS='--max-old-space-size=4096' yarn tsx node_modules/.bin/webpack -c ./webpack.config.ts",
"build-client": "NODE_ENV=production PLUGIN=client I8N_NS=plugin__odf-client-console yarn build:plugin",
"build-dev": "NODE_ENV=development PLUGIN=odf I8N_NS=plugin__odf-console yarn build:plugin",
"build-mco": "NODE_ENV=production PLUGIN=mco I8N_NS=plugin__odf-multicluster-console yarn build:plugin",
"clean": "yarn clean-mco && yarn clean-odf",
"clean-client": "cd plugins/client && rm -rf ./dist",
"clean-mco": "cd plugins/mco && rm -rf ./dist",
"clean-odf": "cd plugins/odf && rm -rf ./dist",
"cypress-generate": "marge -o ./gui-test-screenshots/ -f cypress-report -t 'OpenShift Console Cypress Test Results' -p 'OpenShift Cypress Test Results' --showPassed false --assetsDir ./gui-test-screenshots/cypress/assets ./gui-test-screenshots/cypress.json",
"cypress-merge": "mochawesome-merge ./gui-test-screenshots/cypress_report*.json > ./gui-test-screenshots/cypress.json",
"cypress-postreport": "yarn cypress-merge && yarn cypress-generate",
"dev": "PLUGIN=odf I8N_NS=plugin__odf-console yarn server:plugin",
"dev:c": "yarn ocp-console & PLUGIN=${PLUGIN:=odf} I8N_NS=${I8N_NS} yarn server:plugin & wait",
"dev:no-type-check": "DEV_NO_TYPE_CHECK=true yarn dev",
"dev-client": "PLUGIN=client I8N_NS=plugin__odf-client-console yarn server:plugin",
"dev-mco": "PLUGIN=mco I8N_NS=plugin__odf-multicluster-console yarn server:plugin",
"export-pos": "./scripts/i18n/export-pos.sh",
"format": "yarn prettier -w .",
"format-test": "yarn prettier -c .",
"i18n": "i18next \"packages/**/*.{ts,tsx}\" [-oc] -c i18next-parser.config.js",
"i18n-test": "yarn i18n --fail-on-update",
"i18n-to-po": "node ./scripts/i18n/i18n-to-po.js",
"lint": "yarn lint-ts && yarn lint-css",
"lint-css": "yarn stylelint packages/**/**/*.scss",
"lint-css-fix": "yarn stylelint packages/**/**/*.scss --fix",
"lint-fix": "yarn lint-ts-fix && yarn lint-css-fix",
"lint-ts": "yarn eslint --ext .ts,.tsx .",
"lint-ts-fix": "yarn eslint --fix --ext .ts,.tsx .",
"memsource-download": "./scripts/i18n/memsource-download.sh",
"memsource-upload": "./scripts/i18n/memsource-upload.sh",
"ocp-console": "./scripts/start-ocp-console.sh",
"po-to-i18n": "node ./scripts/i18n/po-to-i18n.js",
"prepare": "husky install",
"serve-local-build": "./http-server.sh ./plugins/odf/dist",
"serve-local-build:c": "yarn ocp-console & yarn serve-local-build & wait",
"serve-local-build-mco": "./http-server.sh ./plugins/mco/dist",
"server:plugin": "yarn build:generate && I8N_NS=${I8N_NS} yarn tsx ./node_modules/.bin/webpack serve -c ./webpack.config.ts --progress",
"test": "jest --config=jest/config.js",
"test-coverage": "jest --config=jest/config.js --silent --coverage --coverageReporters text-summary",
"test-cypress": "node_modules/.bin/cypress open --e2e --config-file ./cypress/cypress.config.ts --env openshift=true",
"test-cypress-headless": "node --max-old-space-size=4096 node_modules/.bin/cypress run --e2e --config-file ./cypress/cypress.config.ts --env openshift=true --browser ${BRIDGE_E2E_BROWSER_NAME:=chrome} --headless",
"test-silent": "JEST_SILENT_REPORTER_DOTS=true jest --config=jest/config.js --reporters jest-silent-reporter"
},
"lint-staged": {
"*.{ts,tsx,mts}": "eslint --cache --fix -c ./.eslintrc.js",
"*.css": "stylelint --fix",
"*": "prettier --ignore-unknown --write",
"**/package.json": "npx sort-package-json"
},
"resolutions": {
"cross-spawn": "^7.0.6",
"nanoid": "^3.3.8",
"postcss": "^8.4.49",
"tough-cookie": "^4.1.3",
"webpack": "^5.96.1",
"webpack-bundle-analyzer/ws": "^7.5.10",
"webpack-dev-server/express": "^4.21.0"
},
"dependencies": {
"@aws-sdk/client-s3": "3.667.0",
"@aws-sdk/lib-storage": "3.501.0",
"@aws-sdk/s3-request-presigner": "3.614.0",
"@openshift-console/dynamic-plugin-sdk": "1.8.0",
"@openshift-console/dynamic-plugin-sdk-internal": "1.0.0",
"@openshift-console/dynamic-plugin-sdk-webpack": "1.3.0",
"@openshift-console/plugin-shared": "^0.0.3",
"@patternfly/patternfly": "5.4.2",
"@patternfly/react-charts": "7.4.8",
"@patternfly/react-core": "5.4.8",
"@patternfly/react-icons": "5.4.2",
"@patternfly/react-table": "5.4.14",
"@patternfly/react-tokens": "5.4.1",
"@patternfly/react-topology": "5.4.1",
"@types/lodash-es": "^4.17.4",
"@types/react-dnd-html5-backend": "^3.0.2",
"buffer": "^6.0.3",
"cache-loader": "^4.1.0",
"circular-dependency-plugin": "^5.2.2",
"classnames": "^2.3.1",
"copy-webpack-plugin": "^12.0.2",
"css-loader": "^7.1.2",
"file-loader": "^6.2.0",
"fork-ts-checker-webpack-plugin": "^9.0.2",
"fuzzysearch": "^1.0.3",
"history": "^4.9.0",
"i18next": "^24.2.1",
"i18next-conv": "^15.1.1",
"immer": "^10.0.3",
"is-ip": "^5.0.1",
"js-base64": "^2.1.9",
"js-yaml": "^3.13.1",
"lodash-es": "^4.17.21",
"luxon": "^3.3.0",
"mobx": "^6.13.5",
"mobx-react-lite": "^4.0.7",
"murmurhash-js": "^1.0.0",
"react": "^17.0.1",
"react-copy-to-clipboard": "5.x",
"react-dnd": "^15.1.1",
"react-dnd-html5-backend": "^15.1.2",
"react-dom": "^17.0.1",
"react-dropzone": "^14.2.9",
"react-helmet": "^6.1.0",
"react-hook-form": "^7.42.1",
"react-i18next": "^11.11.4",
"react-linkify": "^0.2.2",
"react-redux": "7.2.2",
"react-router-dom-v5-compat": "^6.27.0",
"react-tagsinput": "^3.19.0",
"react-virtualized-auto-sizer": "^1.0.24",
"react-window": "^1.8.10",
"redux": "4.0.1",
"resolve-url-loader": "^5.0.0",
"sass": "^1.81.0",
"sass-loader": "^16.0.3",
"semver": "6.x",
"style-loader": "^3.3.4",
"swr": "2.2.5",
"thread-loader": "^4.0.4",
"ts-loader": "^9.5.1",
"tsx": "^4.19.2",
"typesafe-actions": "^4.2.1",
"typescript": "^5.7.3",
"victory-core": "^37.1.1",
"webpack": "^5.96.1",
"webpack-bundle-analyzer": "^4.10.2",
"webpack-cli": "^5.1.4",
"yup": "^0.32.11"
},
"devDependencies": {
"@cypress/webpack-preprocessor": "^6.0.2",
"@discoveryjs/json-ext": "0.6.1",
"@swc/core": "^1.9.2",
"@swc/jest": "^0.2.37",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^12.1.5",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.14",
"@types/luxon": "^3.3.1",
"@types/node": "^14.14.34",
"@types/react": "16.8.13",
"@types/react-helmet": "^6.1.1",
"@types/react-router": "^5.1.20",
"@types/react-window": "^1.8.8",
"@typescript-eslint/eslint-plugin": "^8.12.2",
"@typescript-eslint/parser": "^8.17.0",
"comment-json": "4.x",
"cypress": "^14.0.0",
"cypress-multi-reporters": "^2.0.4",
"eslint": "^8.57.1",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-chai-friendly": "^1.0.1",
"eslint-plugin-cypress": "^4.1.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.9.0",
"eslint-plugin-jest-dom": "^5.4.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-mobx": "^0.0.13",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^4.6.2",
"eventsource": "^1.1.1",
"http-server": "0.12.x",
"husky": "^7.0.0",
"i18next-parser": "9.1.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-html-reporter": "^3.10.2",
"jest-silent-reporter": "^0.6.0",
"marge": "^1.0.1",
"mocha-junit-reporter": "^2.0.0",
"mochawesome": "^6.2.2",
"mochawesome-merge": "^4.2.0",
"prettier": "2.3.2",
"read-pkg": "5.x",
"stylelint": "^16.11.0",
"stylelint-config-sass-guidelines": "^12.1.0",
"stylelint-config-standard": "^36.0.1",
"stylelint-order": "^6.0.4",
"webpack-dev-server": "^5.2.0"
},
"engines": {
"node": ">=20.x"
}
}