-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathpackage.json
219 lines (219 loc) · 7.63 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
{
"name": "app-frontend-react",
"description": "Default frontend application for Altinn 3 apps created in Altinn Studio",
"private": true,
"author": "Altinn",
"license": "3-Clause BSD",
"exports": "./src/index.tsx",
"scripts": {
"postinstall": "husky",
"gen": "node -r ts-node/register/transpile-only -r tsconfig-paths/register src/codegen/run.ts",
"gen:clean": "node -r ts-node/register/transpile-only -r tsconfig-paths/register src/codegen/clean-generated.ts --empty-only",
"gen:clean:all": "node -r ts-node/register/transpile-only -r tsconfig-paths/register src/codegen/clean-generated.ts",
"gen:restore": "yarn gen:clean:all && yarn gen",
"copy-schemas": "node -r ts-node/register/transpile-only -r tsconfig-paths/register scripts/copy-schemas.ts",
"start": "yarn gen && cross-env NODE_ENV=development webpack-dev-server --config webpack.config.development.js --mode development --progress",
"build": "yarn gen && yarn copy-schemas && cross-env NODE_ENV=production webpack --config webpack.config.production.js --progress",
"docker": "yarn gen && yarn copy-schemas && cross-env NODE_ENV=development webpack --config webpack.config.development.js --progress && yarn serve 8080",
"serve": "http-server dist --cors='*' -p",
"test": "yarn gen && jest",
"test:watch": "yarn gen && jest --watch",
"test:watchall": "yarn gen && jest --watchAll",
"test:preview": "jest-preview",
"test:clear-cache": "jest --clearCache",
"cy:open": "cypress open --env environment=tt02",
"cy:open:docker": "cypress open --env environment=docker",
"cy:run": "cypress run --env environment=tt02",
"cy:run:docker": "cypress run --env environment=docker",
"cy:parallel": "cypress-parallel -s cy:run -t 3 -d test/e2e/integration",
"cy:parallel:docker": "cypress-parallel -s cy:run:docker -t 3 -d test/e2e/integration",
"tsc": "yarn gen && tsc && tsc --project test/tsconfig.json",
"tsc:watch": "yarn gen && tsc --watch",
"tsc:watch:cypress": "yarn gen && tsc --watch --project test/tsconfig.json",
"lint": "yarn gen && eslint .",
"bench": "tsx --expose_gc --tsconfig benchmarks/tsconfig.json benchmarks/${0}"
},
"devDependencies": {
"@babel/core": "7.26.0",
"@babel/plugin-transform-runtime": "7.25.9",
"@babel/preset-env": "7.26.0",
"@babel/preset-react": "7.26.3",
"@babel/runtime": "7.26.0",
"@babel/runtime-corejs3": "7.26.0",
"@eslint/compat": "1.2.4",
"@faker-js/faker": "9.3.0",
"@percy/cli": "1.30.5",
"@percy/cypress": "3.1.3",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
"@tanstack/react-query-devtools": "5.62.11",
"@testing-library/cypress": "10.0.2",
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "6.6.3",
"@testing-library/react": "16.1.0",
"@testing-library/user-event": "14.5.2",
"@types/dot-object": "2.1.6",
"@types/jest": "29.5.14",
"@types/js-levenshtein": "1.1.3",
"@types/json-schema": "7.0.15",
"@types/leaflet": "1",
"@types/marked": "6.0.0",
"@types/mime": "4.0.0",
"@types/node": "22.10.2",
"@types/react": "18.3.18",
"@types/react-dom": "18.3.5",
"@types/react-router-dom": "5.3.3",
"@types/uuid": "10.0.0",
"@typescript-eslint/eslint-plugin": "8.18.2",
"@typescript-eslint/parser": "8.18.2",
"axe-core": "4.10.2",
"babel-jest": "29.7.0",
"babel-loader": "9.2.1",
"caniuse-lite": "1.0.30001690",
"core-js": "3.39.0",
"cross-env": "7.0.3",
"css-loader": "7.1.2",
"cypress": "13.17.0",
"cypress-axe": "1.5.0",
"cypress-fail-on-console-error": "5.1.1",
"cypress-iframe": "1.0.1",
"cypress-multi-reporters": "2.0.4",
"cypress-network-idle": "1.14.2",
"cypress-plugin-tab": "1.0.5",
"cypress-wait-until": "3.0.2",
"dotenv": "16.4.7",
"esbuild-loader": "4.2.2",
"eslint": "9.17.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-cypress": "4.1.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-no-relative-import-paths": "1.5.5",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.37.3",
"eslint-plugin-react-hooks": "5.1.0",
"eslint-plugin-simple-import-sort": "12.1.1",
"eslint-plugin-sonarjs": "3.0.1",
"eslint-plugin-testing-library": "7.1.1",
"eslint-plugin-unused-imports": "4.1.4",
"fork-ts-checker-notifier-webpack-plugin": "9.0.0",
"fork-ts-checker-webpack-plugin": "9.0.2",
"globals": "15.14.0",
"http-server": "14.1.1",
"husky": "9.1.7",
"identity-obj-proxy": "3.0.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-junit": "16.0.0",
"jest-mock-axios": "4.8.0",
"jest-preview": "0.3.1",
"js-levenshtein": "1.1.6",
"jsdom": "25.0.1",
"lint-staged": "15.3.0",
"mime": "4.0.6",
"mini-css-extract-plugin": "2.9.2",
"postcss-modules": "6.0.1",
"prettier": "3.4.2",
"react-refresh": "0.16.0",
"resize-observer-polyfill": "1.5.1",
"source-map-loader": "5.0.0",
"style-loader": "4.0.0",
"terser-webpack-plugin": "5.3.11",
"tinybench": "3.1.0",
"ts-jest": "29.2.5",
"ts-loader": "9.5.1",
"ts-node": "10.9.2",
"tsconfig-paths": "4.2.0",
"tsx": "4.19.2",
"typescript-plugin-css-modules": "5.1.0",
"use-immer": "0.11.0",
"utility-types": "3.11.0",
"webpack": "5.97.1",
"webpack-cli": "6.0.1",
"webpack-dev-server": "5.2.0"
},
"dependencies": {
"@altinn/altinn-design-system": "0.30.2",
"@babel/polyfill": "7.12.1",
"@date-fns/tz": "1.2.0",
"@digdir/design-system-react": "0.54.0",
"@digdir/designsystemet-css": "0.10.0",
"@digdir/designsystemet-react": "0.63.1",
"@digdir/designsystemet-theme": "0.15.3",
"@material-ui/core": "4.12.4",
"@navikt/aksel-icons": "7.9.0",
"@tanstack/react-query": "5.62.11",
"ajv": "8.17.1",
"ajv-errors": "3.0.0",
"ajv-formats": "3.0.1",
"ajv-formats-draft2019": "1.6.1",
"axios": "1.7.9",
"classnames": "2.5.1",
"cypress-parallel": "0.14.0",
"date-fns": "4.1.0",
"dompurify": "3.2.3",
"dot-object": "2.1.5",
"eslint-plugin-preferred-import-path": "1.1.0",
"fast-array-diff": "1.1.0",
"fast-json-patch": "3.1.1",
"html-react-parser": "5.2.2",
"immer": "10.1.1",
"jsonpointer": "5.0.1",
"leaflet": "1.9.4",
"lru-cache": "11.0.2",
"marked": "15.0.4",
"marked-mangle": "1.1.10",
"node-polyfill-webpack-plugin": "4.1.0",
"react": "18.3.1",
"react-content-loader": "7.0.2",
"react-day-picker": "9.5.0",
"react-device-detect": "2.2.3",
"react-dom": "18.3.1",
"react-dropzone": "14.3.5",
"react-helmet-async": "2.0.5",
"react-leaflet": "4.2.1",
"react-number-format": "5.4.3",
"react-router-dom": "6.28.1",
"react-toastify": "11.0.2",
"terraformer-wkt-parser": "1.2.1",
"typescript": "5.7.2",
"typescript-eslint": "8.18.2",
"uuid": "11.0.3",
"zustand": "5.0.2"
},
"packageManager": "yarn@4.6.0",
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
".husky/pre-commit-check-for-skipped-tests",
"yarn eslint --cache --fix"
],
"*.json": "yarn eslint --cache --fix",
"*.{css,md}": "yarn prettier --write"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
">0.2%",
"not dead",
"not op_mini all",
"ie 11"
]
},
"percy": {
"version": 2,
"discovery": {
"allowed-hostnames": [
"localhost",
"localhost:8080",
"altinncdn.no"
],
"launch-options": {
"executable": "/usr/bin/google-chrome",
"timeout": 30000
}
}
}
}