-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
125 lines (125 loc) · 4.64 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
{
"name": "pensjonskalkulator-frontend",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"start": "vite",
"start:production": "vite --mode production",
"fetch-land-liste": "node --experimental-fetch ./scripts/FetchLandListe.js",
"fetch-dev-types": "openapi-typescript https://pensjonskalkulator-backend.intern.dev.nav.no/v3/api-docs/current -o ./src/types/schema.d.ts",
"postfetch-dev-types": "npm run format:types",
"format:types": "prettier --write ./src/types/schema.d.ts && eslint ./src/types/schema.d.ts --fix",
"prebuild": "npm run fetch-land-liste && npm run eslint:check && npm run prettier:check && npm run stylelint:check",
"build": "tsc && vite build --mode staging",
"build:server": "tsc -p tsconfig.server.json",
"build:production": "tsc && vite build --mode production",
"preview": "vite preview",
"test": "vitest run --pool=forks --coverage",
"test:update": "vitest run --pool=forks -u",
"test:watch": "vitest --pool=forks",
"test:ui": "vitest --pool=forks --ui",
"cy:open": "cypress open",
"cy:test": "start-server-and-test preview http://localhost:4173/pensjon/kalkulator 'ELECTRON_EXTRA_LAUNCH_ARGS=\"--force-prefers-reduced-motion\" cypress run'",
"cy:test:production": "start-server-and-test preview http://localhost:4173/pensjon/kalkulator 'ELECTRON_EXTRA_LAUNCH_ARGS=\"--force-prefers-reduced-motion\" cypress run --env DECORATOR_URL=https://www.nav.no/dekoratoren'",
"eslint:check": "eslint ./src",
"eslint:fix": "eslint ./src --fix",
"stylelint:check": "stylelint 'src/**/*.{css,scss}'",
"stylelint:fix": "stylelint 'src/**/*.{css,scss}' --fix",
"prettier:check": "prettier --check '**/*.{cjs,js,jsx,ts,tsx,json}'",
"prettier:fix": "prettier --write '**/*.{cjs,js,jsx,ts,tsx,json}'",
"prepare": "husky"
},
"dependencies": {
"@elastic/ecs-winston-format": "^1.5.3",
"@navikt/oasis": "^3.4.0",
"express": "^4.21.0",
"express-prom-bundle": "^8.0.0",
"http-proxy-middleware": "^3.0.3",
"prom-client": "^15.1.3",
"winston": "^3.15.0"
},
"devDependencies": {
"@babel/plugin-syntax-import-attributes": "^7.26.0",
"@eslint/compat": "^1.2.1",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.13.0",
"@formatjs/ecma402-abstract": "^2.2.1",
"@formatjs/intl-datetimeformat": "^6.16.1",
"@formatjs/intl-numberformat": "^8.14.1",
"@grafana/faro-web-sdk": "^1.11.0",
"@grafana/faro-web-tracing": "^1.11.0",
"@navikt/aksel-icons": "^7.4.0",
"@navikt/ds-css": "^7.4.0",
"@navikt/ds-react": "^7.4.0",
"@navikt/ds-tokens": "^7.0.0",
"@navikt/nav-dekoratoren-moduler": "^3.1.1",
"@reduxjs/toolkit": "^2.3.0",
"@testing-library/jest-dom": "^6.6.2",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/amplitude-js": "^8.16.5",
"@types/express": "^5.0.0",
"@types/node": "^22.8.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.3",
"@vitest/coverage-v8": "^2.1.3",
"@vitest/ui": "^2.0.5",
"amplitude-js": "^8.21.9",
"axe-core": "^4.10.2",
"clsx": "^2.1.1",
"cypress": "^13.15.1",
"cypress-axe": "^1.4.0",
"date-fns": "^4.1.0",
"eslint": "^9.13.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.31.0",
"globals": "^15.10.0",
"highcharts": "^11.4.8",
"highcharts-react-official": "^3.2.1",
"husky": "^9.1.6",
"jsdom": "^25.0.1",
"lint-staged": "^15.2.10",
"msw": "^2.5.2",
"node-sass": "^9.0.0",
"openapi-typescript": "^7.4.1",
"postcss": "^8.4.47",
"postcss-modules-extract-imports": "^3.1.0",
"postcss-modules-local-by-default": "^4.0.5",
"postcss-modules-scope": "^3.2.0",
"postcss-modules-values": "^4.0.0",
"prettier": "^3.3.3",
"react": "~18.3.0",
"react-dom": "~18.3.1",
"react-intl": "6.8.4",
"react-redux": "^9.1.2",
"react-router-dom": "^6.27.0",
"rollup-plugin-visualizer": "^5.12.0",
"sass": "^1.80.4",
"start-server-and-test": "^2.0.8",
"stylelint": "^15.11.0",
"stylelint-config-standard-scss": "^11.1.0",
"timers": "^0.1.1",
"typescript": "^5.6.3",
"typescript-eslint": "^8.11.0",
"vite": "^5.4.9",
"vite-plugin-eslint": "^1.8.1",
"vite-plugin-sass-dts": "^1.3.29",
"vite-plugin-stylelint": "^5.3.1",
"vite-tsconfig-paths": "^5.0.1",
"vitest": "^2.1.1"
},
"msw": {
"workerDirectory": "public"
},
"lint-staged": {
"**/*.{css,scss}": [
"npm run stylelint:check"
],
"**/*.{cjs,js,jsx,ts,tsx}": [
"npm run prettier:check",
"npm run eslint:check"
]
}
}