-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
211 lines (211 loc) · 7.08 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
{
"name": "familie-ba-soknad",
"type": "module",
"scripts": {
"format-all": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
"prettier": "prettier -l \"src/**/*.{js,jsx,ts,tsx}\"",
"eslint": "eslint src/",
"lint-test": "yarn prettier && yarn eslint",
"start:dev": "yarn clean && BASE_PATH=/barnetrygd/soknad/ concurrently \"yarn:dev:*\"",
"dev:server": "yarn build:backend:dev && node dist/server.cjs",
"dev:webpack": "yarn set-node-options TS_NODE_PROJECT=src/webpack/tsconfig.json NODE_ENV=development webpack serve -c src/webpack/webpack.development.config.ts",
"build": "concurrently npm:build:frontend npm:build:backend",
"build:frontend": "yarn set-node-options TS_NODE_PROJECT=src/webpack/tsconfig.json NODE_ENV=production webpack -c src/webpack/webpack.production.config.ts",
"build:backend": "yarn set-node-options TS_NODE_PROJECT=src/backend/tsconfig.json NODE_ENV=production webpack -c src/backend/webpack.config.ts",
"build:backend:dev": "yarn set-node-options TS_NODE_PROJECT=src/backend/tsconfig.json NODE_ENV=development webpack -c src/backend/webpack.config.ts",
"set-node-options": "NODE_OPTIONS='--import=./registerESMLoader.js --es-module-specifier-resolution=node'",
"test-ci": "CI=true build",
"test": "jest",
"clean": "rm -rf dist",
"typecheck": "tsc --noEmit -p src/frontend/tsconfig.json",
"texts:find-unused": "python3 src/scripts/finn-ubrukte-språktekster.py",
"texts:find-missing": "node src/scripts/find-missing-text-ids.js",
"texts:cleanup": "src/scripts/formater-tekster.sh src/frontend/assets/lang",
"prepare": "husky"
},
"jest": {
"roots": [
"<rootDir>/src"
],
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!src/**/*.d.ts"
],
"setupFilesAfterEnv": [
"<rootDir>/src/jest-setup.ts"
],
"testMatch": [
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
],
"testEnvironment": "jsdom",
"modulePaths": [
"<rootDir>/src"
],
"moduleNameMapper": {
"\\.(css)$": "<rootDir>/src/mockStyle.js",
"styled-components/macro": "styled-components",
"^uuid$": "uuid"
},
"watchPlugins": [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname"
],
"transformIgnorePatterns": [
"/node_modules/(?!(@navikt)/)",
"\\.pnp\\.[^\\/]+$"
],
"transform": {
"\\.[jt]sx?$": "babel-jest"
},
"resetMocks": true
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,css}": [
"prettier --write",
"eslint --fix src/ --max-warnings=0"
]
},
"resolutions": {
"styled-components": "^6",
"browserslist": "^4.16.5",
"ansi-regex": "^5.0.1",
"got": "^11.8.5",
"@types/react": "^18.2.17"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"dependencies": {
"@amplitude/analytics-browser": "^2.11.9",
"@formatjs/intl-datetimeformat": "^6.12.0",
"@formatjs/intl-numberformat": "^8.10.0",
"@grafana/faro-web-sdk": "^1.11.0",
"@navikt/aksel-icons": "^6.1.3",
"@navikt/ds-css": "^6.1.3",
"@navikt/ds-react": "^6.1.3",
"@navikt/familie-form-elements": "^15.0.0",
"@navikt/familie-logging": "^7.0.0",
"@navikt/familie-skjema": "^8.0.8",
"@navikt/familie-typer": "^8.0.2",
"@navikt/fnrvalidator": "^2.0.7",
"@navikt/nav-dekoratoren-moduler": "^2.1.6",
"@portabletext/react": "^3.0.7",
"@portabletext/toolkit": "^2.0.8",
"@sanity/client": "^6.18.2",
"@sentry/react": "^8.38.0",
"axios": "^1.7.4",
"compression": "^1.7.4",
"concurrently": "^8.2.2",
"constate": "^3.3.2",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"date-fns": "^3.6.0",
"dotenv": "^16.4.5",
"express": "^4.21.1",
"http-proxy-middleware": "^2.0.7",
"i18n-iso-countries": "^7.11.0",
"jsdom": "^24.1.0",
"jsonwebtoken": "^9.0.2",
"mustache-express": "^1.3.2",
"node-jose": "^2.2.0",
"openid-client": "^5.6.1",
"ramda": "^0.30.0",
"react": "^18.3.1",
"react-cookie": "^7.1.0",
"react-dom": "^18.3.1",
"react-dropzone": "^14.2.3",
"react-router-dom": "^6.23.0",
"unleash-client": "^5.5.1",
"uuid": "^9.0.1",
"xss": "^1.0.14"
},
"devDependencies": {
"@axe-core/react": "^4.9.0",
"@babel/core": "^7.24.1",
"@babel/plugin-syntax-import-assertions": "^7.24.1",
"@babel/preset-env": "^7.24.1",
"@babel/preset-react": "^7.24.1",
"@babel/preset-typescript": "^7.24.1",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
"@portabletext/types": "^2.0.6",
"@sentry/webpack-plugin": "^2.22.6",
"@testing-library/dom": "^10.3.0",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^16.0.0",
"@types/cookie-parser": "^1.4.6",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/express-session": "^1.18.0",
"@types/jest": "^29.5.11",
"@types/jsonwebtoken": "^9.0.5",
"@types/mustache-express": "^1.2.5",
"@types/node": "^20.14.9",
"@types/react": "^18.3.1",
"@types/styled-components": "^5.1.34",
"@types/webpack-env": "^1.18.4",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"@typescript-eslint/parser": "^7.13.0",
"axios-mock-adapter": "^1.22.0",
"babel-jest": "^29.7.0",
"babel-loader": "9.1.3",
"babel-plugin-styled-components": "^2.1.4",
"buffer": "^6.0.3",
"case-sensitive-paths-webpack-plugin": "2.4.0",
"classnames": "^2.5.1",
"copy-webpack-plugin": "^12.0.2",
"crypto-browserify": "^3.12.0",
"css-loader": "^7.1.1",
"css-minimizer-webpack-plugin": "^7.0.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-jest": "^28.5.0",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.0",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-testing-library": "^6.2.0",
"eslint-webpack-plugin": "^4.2.0",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.6.0",
"husky": "^9.0.11",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-mock-extended": "^3.0.5",
"jest-mock-promise": "^2.0.2",
"jest-watch-typeahead": "^2.2.2",
"lint-staged": "^15.2.10",
"mini-css-extract-plugin": "^2.9.0",
"nodemon": "^3.1.0",
"prettier": "^3.4.1",
"prop-types": "^15.8.1",
"react-dev-utils": "^12.0.1",
"react-element-to-jsx-string": "^15.0.0",
"react-intl": "^6.6.2",
"react-masonry-css": "^1.0.16",
"react-refresh": "^0.14.0",
"stream-browserify": "^3.0.0",
"style-loader": "^4.0.0",
"styled-components": "^6.1.1",
"terser-webpack-plugin": "^5.3.9",
"ts-essentials": "^9.4.1",
"ts-jest": "^29.1.1",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.1",
"typescript": "^5.4.3",
"webpack": "^5.94.0",
"webpack-bundle-analyzer": "^4.10.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.1.0",
"webpack-merge": "^5.10.0"
}
}