-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathpackage.json
182 lines (182 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
{
"name": "@fremtind/jkl",
"private": true,
"version": "2.0.0-alpha.0",
"scripts": {
"clean": "git clean -xfd",
"build": "lerna run build",
"build:docs": "lerna run build:docs",
"commit": "git-cz",
"cosign": "git-cz -S",
"deploy:docs": "pnpm build:docs && gh-pages -f --no-history --remove '[\".\", \"!preview\"]' --dist portal/public",
"typecheck": "tsc --noEmit",
"linker": "node scripts/linker.js",
"lint": "run-p \"lint:eslint\" \"lint:stylelint\"",
"lint:eslint": "eslint '**/*.{js,jsx,ts,tsx}'",
"lint:stylelint": "stylelint --config=packages/stylelint-config-jkl/index.js '**/*.scss'",
"lint:fix": "pnpm lint:eslint --fix && pnpm lint:stylelint --fix",
"ci:test": "run-p test lint:eslint lint:stylelint typecheck",
"ci:changed": "lerna changed --parseable --loglevel error",
"test": "run-p test:unit test:jokul",
"test:unit": "jest --testMatch '**/*.test.+(ts|tsx|js)'",
"test:jokul": "pnpm --filter \"@fremtind/jokul\" test",
"test:watch": "jest --watch",
"version:check": "lerna changed -l -a",
"version": "lernacleanchangelog '**' && git add **/CHANGELOG.md **/package.json package.json pnpm-lock.yaml",
"release": "pnpm build && lerna publish --conventional-graduate",
"release:alpha": "pnpm build && lerna publish --conventional-prerelease --no-git-tag-version --no-changelog --no-private --dist-tag alpha",
"release-gh": "lerna publish from-package",
"dev": "pnpm --filter \"@fremtind/portal\" dev",
"start": "pnpm dev",
"serve:server": "node server.js",
"serve:portal": "pnpm --filter \"ny-portal\" start",
"serve": "run-p serve:*",
"boot": "pnpm install && husky install && pnpm build",
"reboot": "pnpm clean && pnpm boot",
"scaffold": "node './scripts/scaffold'",
"integration:ci": "playwright test",
"integration:interactive": "playwright test --ui",
"integration:axe": "playwright test -g axe",
"storybook": "storybook dev -p 6007 --no-open",
"build-storybook": "storybook build"
},
"packageManager": "[email protected]",
"pnpm": {
"overrides": {
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.1",
"axe-core": "^4.6.3",
"chokidar": "^3.5.3",
"cz-lerna-changelog>shelljs": "^0.8.5",
"glob-stream>glob-parent": "^5.1.2",
"nx": "15.4.2",
"resolve-url-loader>loader-utils": "^1.4.2",
"sharp": "0.33.5"
},
"patchedDependencies": {
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]"
}
},
"dependencies": {
"fs-extra": "^11.2.0",
"glob": "^8.1.0",
"nodemon": "^2.0.22",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-is": "^18.3.1"
},
"devDependencies": {
"@axe-core/playwright": "^4.10.1",
"@chromatic-com/storybook": "^3.2.4",
"@commitlint/cli": "^17.8.1",
"@commitlint/config-conventional": "^17.8.1",
"@fremtind/browserslist-config-jkl": "^2.0.1",
"@fremtind/stylelint-config-jkl": "^8.0.4",
"@playwright/test": "^1.49.1",
"@storybook/addon-essentials": "^8.5.3",
"@storybook/addon-interactions": "^8.5.3",
"@storybook/addon-onboarding": "^8.5.3",
"@storybook/blocks": "^8.5.3",
"@storybook/react": "^8.5.3",
"@storybook/react-vite": "^8.5.3",
"@storybook/test": "^8.5.3",
"@testing-library/dom": "^9.3.4",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^14.3.1",
"@testing-library/user-event": "^14.5.2",
"@types/express": "^4.17.21",
"@types/glob": "^8.1.0",
"@types/jest-axe": "^3.5.9",
"@types/node": "^18.19.69",
"@types/react": "18.3.3",
"@types/react-dom": "^18.3.5",
"@types/react-is": "^18.3.1",
"@types/react-syntax-highlighter": "^15.5.13",
"@types/testing-library__jest-dom": "^5.14.9",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vitejs/plugin-react": "^4.3.4",
"@vitejs/plugin-react-swc": "^3.7.2",
"autoprefixer": "^10.4.20",
"browserslist": "^4.24.3",
"case": "^1.6.3",
"classnames": "^2.5.1",
"clsx": "^2.1.1",
"commitizen": "^4.3.1",
"cssnano": "^6.1.2",
"cssnano-preset-lite": "^3.1.0",
"cz-lerna-changelog": "2.0.3",
"esbuild": "^0.19.12",
"esbuild-plugin-browserslist": "~0.7.2",
"esbuild-sass-plugin": "^2.16.1",
"eslint": "^8.57.1",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.37.3",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-storybook": "^0.11.2",
"express": "^4.21.2",
"express-http-proxy": "^2.1.1",
"get-port": "^6.1.2",
"gh-pages": "5.0.0",
"gulp": "^4.0.2",
"gulp-postcss": "^9.0.1",
"gulp-rename": "^2.0.0",
"gulp-sass": "^5.1.0",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-axe": "^7.0.1",
"jest-canvas-mock": "^2.5.2",
"jest-environment-jsdom": "^29.7.0",
"jest-watch-typeahead": "^2.2.2",
"lerna": "7.0.0",
"lerna-clean-changelogs-cli": "3.0.11",
"lint-staged": "^13.3.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.49",
"prettier": "^2.8.8",
"prompt": "^1.3.0",
"react-hook-form": "^7.54.2",
"react-live": "^3.2.0",
"react-syntax-highlighter": "^15.6.1",
"replace-in-file": "^7.2.0",
"resize-observer-polyfill": "^1.5.1",
"rimraf": "^6.0.1",
"sass": "^1.83.1",
"storybook": "^8.5.3",
"stylelint": "^15.11.0",
"tiny-glob": "^0.2.9",
"typescript": "^5.7.2",
"vite": "^5.4.11",
"vite-plugin-dts": "^3.9.1"
},
"browserslist": [
"extends @fremtind/browserslist-config-jkl"
],
"lint-staged": {
"*.{scss,css,html,json,md,mdx}": [
"prettier --write"
],
"!(*integration).{png,jpg,jpeg}": [
"node scripts/preoptimize-images"
],
"*.{scss,css}": [
"stylelint --fix --config=packages/stylelint-config-jkl/index.js"
],
"*.{ts,tsx,js,jsx}": [
"eslint --fix"
]
},
"stylelint": {
"extends": "@fremtind/stylelint-config-jkl"
},
"eslintConfig": {
"extends": [
"plugin:storybook/recommended"
]
}
}