-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
232 lines (232 loc) · 8.38 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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
{
"name": "uniprot-website",
"version": "0.0.0",
"private": true,
"homepage": "https://ebi-uniprot.github.io/uniprot-website/",
"license": "MIT",
"scripts": {
"start": "npm run start:prod",
"start:dev": "webpack serve --env API_PREFIX=https://wwwdev.ebi.ac.uk/uniprot/api --mode development",
"start:prod": "webpack serve --env API_PREFIX=https://rest.uniprot.org --mode development",
"start:fallback": "webpack serve --env API_PREFIX=http://hx-rke-wp-webadmin-02-worker-1.caas.ebi.ac.uk:31393 --mode development",
"build:dev": "rimraf build && webpack --env API_PREFIX=https://wwwdev.ebi.ac.uk/uniprot/api --env PUBLIC_PATH=/uniprot/front-end/dev/ --env GIT_BRANCH=$CI_COMMIT_BRANCH --mode development",
"build:prod": "rimraf build && webpack --env API_PREFIX=https://rest.uniprot.org --env GIT_BRANCH=$CI_COMMIT_BRANCH --mode production",
"build:ux": "rimraf build && webpack --env API_PREFIX=https://rest.uniprot.org --env PUBLIC_PATH=/uniprot/front-end/ux/ --env GIT_BRANCH=$CI_COMMIT_BRANCH --mode development",
"build:ux-netlify": "rimraf build && webpack --env API_PREFIX=https://rest.uniprot.org --env GIT_BRANCH=$CI_COMMIT_BRANCH --mode development",
"lint-fix": "eslint src --ext .ts,.tsx --fix",
"jest-coverage-ratchet": "jest-coverage-ratchet",
"coverage-bump": "npm-run-all test:unit jest-coverage-ratchet",
"prettier": "prettier src --write",
"test": "npm-run-all --continue-on-error test:lint test:types test:unit",
"test:lint": "eslint src --ext .ts,.tsx --cache --cache-location 'node_modules/.cache'",
"test:types": "tsc",
"test:unit": "jest --coverage",
"test:unit-bail-on-console-error": "jest --coverage --setupFilesAfterEnv \"<rootDir>/jest.setup.ts\" \"<rootDir>/jest.setup.consoleerrorfail.ts\" --bail --runInBand",
"test:functional": "jest --config src/tests/jest.config.json src/tests/functional",
"test:visual": "jest --config src/tests/jest.config.json src/tests/visual",
"clear-test-cache": "jest --clearCache",
"prepare": "husky",
"update-mocks": "scripts/update-mocks.mjs"
},
"jest": {
"coverageReporters": [
"json-summary",
"lcov",
"text-summary",
"clover"
],
"coverageThreshold": {
"global": {
"lines": 78,
"statements": 78,
"functions": 76,
"branches": 66,
"branchesTrue": 100
}
},
"transform": {
"^.+\\.(jsx|tsx|js|ts)?$": "babel-jest",
".+\\.(css|styl|less|sass|scss)$": "jest-css-modules-transform"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx"
],
"transformIgnorePatterns": [
"<rootDir>/node_modules/(?!franklin-sites|p-map|aggregate-error|clean-stack|protvista-uniprot|@nightingale|@lit/react|url-join).+\\.js"
],
"testPathIgnorePatterns": [
"/__mocks__/",
"<rootDir>/\\..+\\/"
],
"coveragePathIgnorePatterns": [
"/__test-helpers__/",
"<rootDir>/\\..+\\/"
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
"\\.(css|less|sass|scss)$": "identity-obj-proxy",
"^/(.*)$": "<rootDir>/src/$1",
"^d3$": "<rootDir>/node_modules/d3/",
"^react$": "<rootDir>/node_modules/react/",
"^react-router-dom$": "<rootDir>/node_modules/react-router-dom/",
"^timing-functions$": "<rootDir>/node_modules/timing-functions/",
"^franklin-sites$": "<rootDir>/node_modules/franklin-sites/src/components/",
"^lodash-es$": "lodash"
},
"globals": {
"BASE_URL": "/",
"API_PREFIX": "/<testing>/api",
"GIT_COMMIT_HASH": "#git_commit_id"
},
"setupFilesAfterEnv": [
"<rootDir>/jest.setup.ts"
],
"globalSetup": "<rootDir>/jest.global.setup.ts",
"testEnvironment": "jsdom"
},
"lint-staged": {
"*.+(ts|tsx|js|jsx|css|scss)": [
"prettier --write"
]
},
"resolutions": {
"wrap-ansi": "7.0.0",
"string-width": "4.1.0"
},
"dependencies": {
"@floating-ui/dom": "1.6.5",
"@hello-pangea/dnd": "17.0.0",
"@lit/react": "1.0.5",
"@nightingale-elements/nightingale-filter": "5.3.2",
"@nightingale-elements/nightingale-manager": "5.3.2",
"@nightingale-elements/nightingale-msa": "5.3.2",
"@nightingale-elements/nightingale-navigation": "5.3.2",
"@nightingale-elements/nightingale-new-core": "5.3.2",
"@nightingale-elements/nightingale-sequence": "5.3.2",
"@nightingale-elements/nightingale-track": "5.3.2",
"@nightingale-elements/nightingale-variation": "5.3.2",
"@sentry/react": "8.31.0",
"@sentry/tracing": "7.27.0",
"@sentry/types": "8.31.0",
"@swissprot/rhea-reaction-visualizer": "0.0.21",
"@swissprot/swissbiopics-visualizer": "0.0.28",
"axios": "1.7.7",
"classnames": "2.5.1",
"complexviewer": "2.2.2",
"core-js": "3.38.1",
"d3": "5.16.0",
"deep-freeze": "0.0.1",
"franklin-sites": "0.0.251",
"front-matter": "4.0.2",
"history": "4.10.1",
"idb": "8.0.0",
"interaction-viewer": "3.8.4",
"lite-youtube-embed": "0.3.3",
"lodash-es": "4.17.21",
"marked": "14.1.2",
"marked-gfm-heading-id": "4.1.0",
"p-map": "7.0.2",
"protvista-uniprot": "3.0.9",
"react": "18",
"react-diff-viewer-continued": "3.4.0",
"react-dom": "18",
"react-helmet-async": "2.0.5",
"react-router-dom": "5.3.4",
"sanitize-html": "2.13.0",
"schema-dts": "1.1.2",
"swagger-ui-react": "5.17.14",
"timing-functions": "2.0.1",
"tippy.js": "6.3.7",
"type-fest": "4.26.1",
"typesafe-actions": "5.1.0",
"url-join": "5.0.0",
"uuid": "10.0.0",
"workbox-broadcast-update": "7.1.0",
"workbox-cacheable-response": "7.1.0",
"workbox-core": "7.1.0",
"workbox-expiration": "7.1.0",
"workbox-precaching": "7.1.0",
"workbox-routing": "7.1.0",
"workbox-strategies": "7.1.0",
"workbox-window": "7.1.0"
},
"devDependencies": {
"@babel/core": "7.25.2",
"@babel/parser": "7.25.6",
"@babel/preset-env": "7.25.4",
"@babel/preset-react": "7.24.7",
"@babel/preset-typescript": "7.24.7",
"@svgr/webpack": "5.5.0",
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "6.5.0",
"@testing-library/react": "16.0.1",
"@testing-library/user-event": "14.5.2",
"@types/d3": "5.16.3",
"@types/deep-freeze": "0.1.5",
"@types/gtag.js": "0.0.20",
"@types/jest": "29.5.13",
"@types/lodash-es": "4.17.12",
"@types/marked": "6.0.0",
"@types/react": "18",
"@types/react-dom": "18",
"@types/react-router-dom": "5.3.3",
"@types/sanitize-html": "2.13.0",
"@types/swagger-ui-react": "4.18.3",
"@types/uuid": "10.0.0",
"@typescript-eslint/eslint-plugin": "8.4.0",
"@typescript-eslint/parser": "8.4.0",
"assert": "2.1.0",
"axios-mock-adapter": "2.0.0",
"babel-jest": "29.7.0",
"babel-loader": "9.2.1",
"babel-plugin-dynamic-import-node": "2.3.3",
"buffer": "6.0.3",
"circular-dependency-plugin": "5.2.2",
"copy-webpack-plugin": "12.0.2",
"css-loader": "7.1.2",
"eslint": "8.57.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jsx-a11y": "6.6.1",
"eslint-plugin-react": "7.31.10",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-uniprot-website": "file:./eslint-custom-rules",
"fake-indexeddb": "6.0.0",
"html-loader": "5.1.0",
"html-webpack-plugin": "5.6.0",
"husky": "9.1.6",
"identity-obj-proxy": "3.0.0",
"jest": "29.7.0",
"jest-coverage-ratchet": "0.2.3",
"jest-css-modules-transform": "4.4.2",
"jest-environment-jsdom": "29.7.0",
"jest-fetch-mock": "3.0.3",
"jest-silent-reporter": "0.6.0",
"lint-staged": "15.2.10",
"lodash": "4.17.21",
"mini-css-extract-plugin": "2.9.1",
"npm-run-all": "4.1.5",
"openapi-types": "12.1.3",
"prettier": "3.3.3",
"process": "0.11.10",
"recast": "0.23.9",
"rimraf": "6.0.1",
"sass": "1.55.0",
"sass-loader": "13.1.0",
"style-loader": "4.0.0",
"svg-inline-loader": "0.8.2",
"typescript": "5.6.2",
"typescript-plugin-css-modules": "5.1.0",
"webpack": "5.94.0",
"webpack-bundle-analyzer": "4.10.2",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.1.0",
"workbox-webpack-plugin": "7.1.0",
"worker-loader": "3.0.8"
}
}