-
Notifications
You must be signed in to change notification settings - Fork 31
/
package.json
166 lines (166 loc) · 6.68 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
{
"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",
"cypress:open": "ELECTRON_EXTRA_LAUNCH_ARGS=\"--force-prefers-reduced-motion\" cypress open --project .",
"cypress:dev": "cypress open --project . --config baseUrl=http://localhost:8000",
"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",
"portalen:dev": "pnpm -C portalen run dev",
"portalen:build": "pnpm -C portalen run build",
"portalen:test": "pnpm -C portalen run test",
"portalen:serve": "pnpm -C portalen run serve",
"portalen:clean": "pnpm -C portalen run clean",
"start": "pnpm dev",
"serve": "pnpm --filter \"@fremtind/portal\" 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"
},
"packageManager": "[email protected]",
"pnpm": {
"overrides": {
"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"
},
"patchedDependencies": {
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]",
"@frsource/[email protected]": "patches/@[email protected]"
}
},
"dependencies": {
"fs-extra": "^11.1.1",
"glob": "^8.1.0",
"nodemon": "^2.0.22",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-is": "^18.2.0"
},
"devDependencies": {
"@commitlint/cli": "^17.6.5",
"@commitlint/config-conventional": "^17.6.5",
"@fremtind/browserslist-config-jkl": "^2.0.0-alpha.0",
"@fremtind/stylelint-config-jkl": "^8.0.0-alpha.0",
"@frsource/cypress-plugin-visual-regression-diff": "3.1.6",
"@playwright/test": "^1.46.1",
"@testing-library/dom": "^9.3.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"@types/express": "^4.17.17",
"@types/glob": "^8.1.0",
"@types/jest-axe": "^3.5.5",
"@types/node": "^18.16.16",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react-is": "^18.2.0",
"@types/react-syntax-highlighter": "^15.5.7",
"@types/testing-library__jest-dom": "^5.14.6",
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.59.9",
"@vitejs/plugin-react-swc": "^3.5.0",
"autoprefixer": "^10.4.14",
"browserslist": "^4.21.7",
"case": "^1.6.3",
"classnames": "^2.5.1",
"commitizen": "^4.3.0",
"cssnano": "^6.0.1",
"cssnano-preset-lite": "^3.0.0",
"cypress": "^13.2.0",
"cz-lerna-changelog": "^2.0.3",
"esbuild": "^0.19.1",
"esbuild-plugin-browserslist": "~0.7.2",
"esbuild-sass-plugin": "^2.12.0",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"express": "^4.18.2",
"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.5.0",
"jest-axe": "^7.0.1",
"jest-canvas-mock": "^2.5.1",
"jest-environment-jsdom": "^29.5.0",
"jest-watch-typeahead": "^2.2.2",
"lerna": "^7.0.0",
"lerna-clean-changelogs-cli": "^3.0.11",
"lint-staged": "^13.2.2",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.24",
"prettier": "^2.8.8",
"prompt": "^1.3.0",
"react-hook-form": "^7.44.3",
"react-live": "^3.2.0",
"react-syntax-highlighter": "^15.5.0",
"replace-in-file": "^7.0.1",
"resize-observer-polyfill": "^1.5.1",
"rimraf": "^6.0.1",
"sass": "^1.81.0",
"stylelint": "^15.7.0",
"tiny-glob": "^0.2.9",
"typescript": "^5.0.4",
"vite": "^5.2.0",
"vite-plugin-dts": "^3.9.0"
},
"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"
}
}