forked from RedHatInsights/vulnerability-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
190 lines (190 loc) · 6.93 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
{
"name": "@redhat-cloud-services/frontend-components-inventory-vulnerabilities",
"private": false,
"version": "1.104.4",
"browser": "dist/index.js",
"module": "esm/index.js",
"dependencies": {
"@babel/runtime": "^7.23.1",
"@patternfly/patternfly": "^5.2.1",
"@patternfly/react-core": "^5.2.1",
"@patternfly/react-icons": "^5.2.1",
"@patternfly/react-table": "^5.2.1",
"@react-pdf/renderer": "^1.6.8",
"@redhat-cloud-services/frontend-components": "^4.2.5",
"@redhat-cloud-services/frontend-components-notifications": "^4.1.0",
"@redhat-cloud-services/frontend-components-pdf-generator": "^4.0.3",
"@redhat-cloud-services/frontend-components-translations": "^3.2.7",
"@redhat-cloud-services/frontend-components-utilities": "^4.0.2",
"@redhat-cloud-services/host-inventory-client": "^1.0.116",
"@redhat-cloud-services/vulnerabilities-client": "^1.2.13",
"@unleash/proxy-client-react": "^4.2.2",
"axios": "^1.6.0",
"dot": "^1.1.3",
"marked": "^4.2.12",
"query-string": "^7.1.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.21.3",
"react-router-hash-link": "^2.4.3",
"sanitize-html": "^2.10.0",
"seamless-immutable": "^7.1.4",
"semver": "^7.5.2"
},
"overrides": {
"@react-pdf/renderer": {
"react": "^18.2.0"
}
},
"sassIncludes": {
"patternfly": "node_modules/patternfly/dist/sass",
"bootstrap": "node_modules/patternfly/node_modules/bootstrap-sass/assets/stylesheets",
"fontAwesome": "node_modules/patternfly/node_modules/font-awesome-sass/assets/stylesheets"
},
"jest": {
"collectCoverage": true,
"coverageDirectory": "./jest-coverage/",
"collectCoverageFrom": [
"src/**/*.js",
"!src/**/stories/*",
"!src/**/TrendBox/*"
],
"setupFiles": [
"<rootDir>/config/setupTests.js"
],
"roots": [
"<rootDir>/src/"
],
"moduleNameMapper": {
"\\.(css|scss)$": "identity-obj-proxy",
"\\.(svg)$": "<rootDir>/__mocks__/fileMock.js",
"^@redhat-cloud-services/frontend-components-pdf-generator$": "<rootDir>/node_modules/@redhat-cloud-services/frontend-components-pdf-generator/dist/esm/index.js"
},
"testEnvironment": "jsdom"
},
"devDependencies": {
"@babel/core": "^7.23.0",
"@babel/eslint-parser": "^7.22.15",
"@babel/plugin-proposal-decorators": "^7.23.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.22.15",
"@babel/preset-env": "^7.22.20",
"@babel/preset-flow": "^7.22.15",
"@babel/preset-react": "^7.22.15",
"@cypress/code-coverage": "^3.10.7",
"@cypress/react18": "^2.0.0",
"@formatjs/cli": "^6.1.3",
"@frsource/cypress-plugin-visual-regression-diff": "^3.2.8",
"@redhat-cloud-services/frontend-components-config": "^6.0.11",
"@redhat-cloud-services/tsc-transform-imports": "^1.0.9",
"@rollup/plugin-commonjs": "^25.0.2",
"@rollup/plugin-image": "^3.0.2",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/pluginutils": "^5.0.2",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@testing-library/user-event": "^14.5.2",
"babel-jest": "^29.7.0",
"babel-loader": "^9.1.3",
"babel-plugin-dual-import": "^1.2.1",
"babel-plugin-istanbul": "^6.1.1",
"babel-plugin-lodash": "^3.3.2",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-imports": "^2.0.0",
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
"babel-polyfill": "^6.26.0",
"codecov": "^3.8.2",
"css-loader": "^6.8.1",
"cypress": "^12.0.0",
"eslint": "^8.51.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-jest-dom": "^5.1.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-testing-library": "^6.1.0",
"file-loader": "^6.2.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"loader-utils": "^2.0.4",
"npm-run-all": "^4.1.5",
"prop-types": "^15.8.1",
"react-intl": "^6.4.4",
"react-intl-detect-unused": "^1.0.1",
"react-redux": "7.2.9",
"redux": "^4.2.1",
"redux-mock-store": "^1.5.4",
"redux-promise-middleware": "^6.2.0",
"rollup": "^2.73.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-terser": "^7.0.2",
"stylelint": "^15.10.3",
"stylelint-config-recommended-scss": "^13.0.0",
"stylelint-scss": "^5.2.1",
"ts-patch": "^3.1.2",
"typescript": "^5.4.4",
"webpack": "^5.90.3",
"webpack-bundle-analyzer": "^4.10.1",
"webpack-cli": "^5.1.4"
},
"scripts": {
"analyze": "fec build --env analyze=true --mode production",
"bootstrap": "rm -rf ./dist package-lock.json node_modules; npm install",
"build": "fec build",
"test:ct": "BABEL_ENV=componentTest cypress run --component",
"test:openct": "cypress open --component",
"test:jest": "TZ=UTC jest --no-cache --passWithNoTests --env=jsdom",
"test:jest:cache": "TZ=UTC jest --silent --passWithNoTests --env=jsdom",
"test": "npm run test:jest",
"test:jest:watch": "TZ=UTC jest --watch --passWithNoTests --no-cache",
"test:jest:update": "TZ=UTC jest --updateSnapshot --passWithNoTests --no-cache",
"coverage:clean": "rm -rf .nyc_output coverage reports",
"coverage": "bash coverage.sh && npm run coverage:clean",
"lint": "npm-run-all lint:*",
"lint:js": "eslint config src",
"lint:sass": "stylelint 'src/**/*.scss' --config .stylelint.json",
"server:ctr": "node src/server/generateServerKey.js",
"start": "fec dev",
"start:proxy": "PROXY=true fec dev",
"travis:verify": "npm-run-all travis:build lint test coverage",
"verify": "npm-run-all build lint test",
"nightly": "npm run travis:verify",
"translations": "npm-run-all translations:*",
"translations:extract": "npx formatjs extract ./src/*.js --out-file ./build/messages/src/Messages.json",
"translations:compile": "npx formatjs compile ./build/messages/src/Messages.json --out-file ./locales/en.json",
"translations:unused": "npx react-intl-unused -m ./src/Messages.js -s src/",
"postinstall": "ts-patch install"
},
"repository": {
"type": "git",
"url": "https:[email protected]:RedHatInsights/vulnerability-ui.git"
},
"insights": {
"appname": "vulnerability"
},
"files": [
"dist"
],
"publishConfig": {
"access": "public"
},
"nyc": {
"report-dir": "cypress-coverage",
"include": [
"src/**/*.js",
"src/**/*.ts",
"src/**/*.tsx"
],
"exclude": [
"src/**/*.test.js",
"src/**/*.cy.js"
]
}
}