forked from podman-desktop/podman-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
227 lines (227 loc) · 14.3 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
220
221
222
223
224
225
226
227
{
"name": "podman-desktop",
"productName": "Podman Desktop",
"repository": "https://github.com/podman-desktop/podman-desktop",
"homepage": "https://www.podman-desktop.io",
"version": "1.16.0-next",
"license": "apache-2.0",
"type": "module",
"private": true,
"engines": {
"node": ">=20.9.0",
"npm": ">=10.2.3"
},
"main": "packages/main/dist/index.cjs",
"scripts": {
"build": "npm run build:main && npm run build:preload && npm run build:preload-docker-extension && npm run build:preload-webview && npm run build:ui && npm run build:renderer && npm run build:extensions",
"build:main": "cd ./packages/main && vite build",
"build:extensions": "npm run build:extensions:compose && npm run build:extensions:docker && npm run build:extensions:lima && npm run build:extensions:podman && npm run build:extensions:kubecontext && npm run build:extensions:kind && npm run build:extensions:registries && npm run build:extensions:kubectl-cli",
"build:extensions:compose": "cd ./extensions/compose && npm run build",
"build:extensions:docker": "cd ./extensions/docker && npm run build",
"build:extensions:kubecontext": "cd ./extensions/kube-context && npm run build",
"build:extensions:kind": "cd ./extensions/kind && npm run build",
"build:extensions:lima": "cd ./extensions/lima && npm run build",
"build:extensions:podman": "cd ./extensions/podman/packages/extension && npm run build",
"build:extensions:registries": "cd ./extensions/registries && npm run build",
"build:extensions:kubectl-cli": "cd ./extensions/kubectl-cli && npm run build",
"build:extension-api": "cd ./packages/extension-api && vite build",
"build:preload": "cd ./packages/preload && vite build",
"build:preload-docker-extension": "cd ./packages/preload-docker-extension && vite build",
"build:preload-webview": "cd ./packages/preload-webview && vite build",
"build:preload:types": "dts-cb -i \"packages/preload/tsconfig.json\" -o \"packages/preload/exposedInMainWorld.d.ts\" && dts-cb -i \"packages/preload-docker-extension/tsconfig.json\" -o \"packages/preload-docker-extension/exposedInDockerExtension.d.ts\" && dts-cb -i \"packages/preload-webview/tsconfig.json\" -o \"packages/preload-webview/exposedInWebview.d.ts\"",
"build:renderer": "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite -c packages/renderer/vite.config.js build",
"build:ui": "cd ./packages/ui && npm run build",
"compile": "cross-env MODE=production npm run build && electron-builder build --config .electron-builder.config.cjs --dir --config.asar=false",
"compile:next": "cross-env MODE=production npm run build && electron-builder build --publish always --config .electron-builder.config.cjs",
"compile:pull-request": "cross-env MODE=production npm run build && electron-builder build --publish never --config .electron-builder.config.cjs",
"compile:current": "cross-env MODE=production npm run build && electron-builder build --config .electron-builder.config.cjs",
"test": "npm run test:unit && npm run test:e2e",
"test:unit": "npm run test:main && npm run test:preload && npm run test:preload-docker-extension && npm run test:preload-webview && npm run test:ui && npm run test:renderer && npm run test:scripts:stylesheet && npm run test:tools && npm run test:extensions && npm run test:website",
"test:e2e": "npm run test:e2e:build && npm run test:e2e:run",
"test:e2e:build": "cross-env NODE_ENV=development MODE=development DEBUG=pw:browser npm run build",
"test:e2e:run": "xvfb-maybe --auto-servernum --server-args='-screen 0 1280x960x24' -- npx playwright test tests/playwright/src/specs/ --grep-invert @k8s_e2e",
"test:e2e:all": "npm run test:e2e:build && npm run test:e2e:all:run",
"test:e2e:all:run": "xvfb-maybe --auto-servernum --server-args='-screen 0 1280x960x24' -- npx playwright test tests/playwright/src/specs/",
"test:e2e:smoke": "npm run test:e2e:build && npm run test:e2e:smoke:run",
"test:e2e:smoke:run": "xvfb-maybe --auto-servernum --server-args='-screen 0 1280x960x24' -- npx playwright test tests/playwright/src/specs/ -g @smoke",
"test:e2e:k8s": "npm run test:e2e:build && npm run test:e2e:k8s:run",
"test:e2e:k8s:run": "xvfb-maybe --auto-servernum --server-args='-screen 0 1280x960x24' -- npx playwright test tests/playwright/src/specs/ -g @k8s_e2e",
"test:e2e:extension": "npm run test:e2e:build && npm run test:e2e:extension:run",
"test:e2e:extension:run": "xvfb-maybe --auto-servernum --server-args='-screen 0 1280x960x24' -- npx playwright test tests/playwright/src/specs/extension-installation.spec.ts",
"test:e2e:remote": "npm run test:e2e:build && npm run test:e2e:remote:run",
"test:e2e:remote:run": "xvfb-maybe --auto-servernum --server-args='-screen 0 1280x960x24' -- npx playwright test tests/playwright/src/special-specs/podman-remote/ -g @podman-remote",
"test:e2e:update": "npm run test:e2e:build && npm run test:e2e:update:run",
"test:e2e:update:run": "xvfb-maybe --auto-servernum --server-args='-screen 0 1280x960x24' -- npx playwright test tests/playwright/src/special-specs/installation/ -g @update-install",
"test:main": "vitest run -r packages/main --passWithNoTests --coverage",
"test:preload": "vitest run -r packages/preload --passWithNoTests --coverage",
"test:preload-docker-extension": "vitest run -r packages/preload-docker-extension --passWithNoTests --coverage",
"test:preload-webview": "vitest run -r packages/preload-webview --coverage",
"test:extensions": "vitest run -r extensions --passWithNoTests --coverage && npm run test:extensions:compose && npm run test:extensions:kind && npm run test:extensions:docker && npm run test:extensions:lima && npm run test:extensions:kube && npm run test:extensions:podman && npm run test:extensions:registries && npm run test:extensions:kubectl-cli",
"test:extensions:kind": "vitest run -r extensions/kind --passWithNoTests --coverage ",
"test:extensions:compose": "vitest run -r extensions/compose --passWithNoTests --coverage",
"test:extensions:docker": "vitest run -r extensions/docker --passWithNoTests --coverage ",
"test:extensions:kube": "vitest run -r extensions/kube-context --passWithNoTests --coverage ",
"test:extensions:lima": "vitest run -r extensions/lima --passWithNoTests --coverage ",
"test:extensions:podman": "vitest run -r extensions/podman/packages/extension --passWithNoTests --coverage ",
"test:extensions:registries": "vitest run -r extensions/registries --passWithNoTests --coverage ",
"test:extensions:kubectl-cli": "vitest run -r extensions/kubectl-cli --passWithNoTests --coverage ",
"test:renderer": "npm run build:preload:types && npm run build:ui && vitest -c packages/renderer/vite.config.js run packages/renderer --passWithNoTests --coverage",
"test:ui": "vitest --config packages/ui/vite.config.js run --passWithNoTests --coverage",
"test:tools": "vitest run tools --passWithNoTests --coverage",
"test:scripts:stylesheet": "vitest run ./scripts/generate-stylesheet.spec.ts --passWithNoTests",
"test:watch": "vitest watch",
"test:website": "vitest run -r website --passWithNoTests --coverage",
"watch": "node scripts/watch.mjs",
"format:check": "biome format",
"format:fix": "biome format --write",
"markdownlint:check": "markdownlint-cli2 \"website/**/*.md\" \"#website/node_modules\" \"#website/api\"",
"markdownlint:fix": "markdownlint-cli2-fix \"website/**/*.md\" \"#website/node_modules\"",
"lint:clean": "rimraf .eslintcache",
"lint:fix": "node --max-old-space-size=6144 node_modules/eslint/bin/eslint.js --cache . --cache-strategy content --fix",
"lint:check": "node --max-old-space-size=6144 node_modules/eslint/bin/eslint.js --cache . --cache-strategy content",
"svelte:check": "svelte-check --ignore \"packages/ui/dist,packages/renderer/src/lib/ui/DetailsPage.svelte,packages/renderer/src/lib/ui/EngineFormPage.svelte,packages/renderer/src/lib/ui/FormPage.svelte,storybook\"",
"typecheck:extension-api": "tsc --noEmit -p packages/extension-api/tsconfig.json",
"typecheck:main": "tsc --noEmit -p packages/main/tsconfig.json",
"typecheck:preload": "tsc --noEmit -p packages/preload/tsconfig.json",
"typecheck:preload-dd-extension": "tsc --noEmit -p packages/preload-docker-extension/tsconfig.json",
"typecheck:preload-webview": "tsc --noEmit -p packages/preload-webview/tsconfig.json",
"typecheck:renderer": "npm run build:preload:types && tsc --noEmit -p packages/renderer/tsconfig.json",
"typecheck:ui": "npm run build:ui && npm run build:preload:types && tsc --noEmit -p packages/ui/tsconfig.json",
"typecheck:extensions": "npm run typecheck:extensions:compose && npm run typecheck:extensions:kind && npm run typecheck:extensions:docker && npm run typecheck:extensions:lima && npm run typecheck:extensions:kube-context && npm run typecheck:extensions:podman && npm run typecheck:extensions:registries && npm run typecheck:extensions:kubectl-cli",
"typecheck:extensions:kind": "tsc --noEmit --project extensions/kind",
"typecheck:extensions:compose": "tsc --noEmit --project extensions/compose",
"typecheck:extensions:docker": "tsc --noEmit --project extensions/docker",
"typecheck:extensions:kube-context": "tsc --noEmit --project extensions/kube-context",
"typecheck:extensions:lima": "tsc --noEmit --project extensions/lima",
"typecheck:extensions:podman": "tsc --noEmit --project extensions/podman/packages/extension",
"typecheck:extensions:registries": "tsc --noEmit --project extensions/registries",
"typecheck:extensions:kubectl-cli": "tsc --noEmit --project extensions/kubectl-cli",
"typecheck": "npm run typecheck:main && npm run typecheck:preload && npm run typecheck:ui && npm run typecheck:renderer && npm run typecheck:preload-dd-extension && npm run typecheck:preload-webview && npm run typecheck:extensions && npm run typecheck:extension-api",
"website:build": "pnpm run storybook:build && cd website && pnpm run docusaurus build",
"website:prod": "pnpm run website:build && cd website/build && pnpm serve",
"website:dev": "pnpm run storybook:build && cd website && pnpm run docusaurus start",
"website:screenshots": "cd website-argos && pnpm run screenshot",
"storybook:css": "tsx ./scripts/generate-stylesheet.ts --output storybook/.storybook/themes.css",
"storybook:dev": "npm run storybook:css && cd storybook && pnpm run dev",
"storybook:build": "npm run build:ui && npm run storybook:css && cd storybook && pnpm run build",
"prepare": "husky install",
"postinstall": "playwright install"
},
"lint-staged": {
"*.{js,ts,tsx,svelte}": [
"node --max-old-space-size=6144 node_modules/eslint/bin/eslint.js --cache --fix",
"biome format --write"
],
"*.{md,css,json}": "biome format --write"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@electron/fuses": "^1.8.0",
"@eslint/compat": "^1.2.4",
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.17.0",
"@playwright/test": "1.49.1",
"@podman-desktop/api": "workspace:",
"@rollup/plugin-commonjs": "^28.0.2",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-typescript": "^12.1.2",
"@tsconfig/strictest": "^2.0.5",
"@types/adm-zip": "^0.5.7",
"@types/dockerode": "^3.3.32",
"@types/express": "^4.17.21",
"@types/getos": "^3.0.4",
"@types/js-yaml": "^4.0.9",
"@types/node": "^20",
"@types/tar": "^6.1.13",
"@types/tar-fs": "^2.0.4",
"@types/validator": "^13.12.2",
"@typescript-eslint/eslint-plugin": "^8.18.1",
"@typescript-eslint/parser": "^8.18.1",
"@vitest/coverage-v8": "^2.1.6",
"@vitest/eslint-plugin": "^1.1.18",
"cross-env": "7.0.3",
"dts-for-context-bridge": "0.7.1",
"electron": "33.2.1",
"electron-builder": "25.1",
"electron-builder-notarize": "^1.5.2",
"electron-devtools-installer": "^3.2.1",
"eslint": "^9.17.0",
"eslint-import-resolver-custom-alias": "^1.3.2",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-etc": "^2.0.3",
"eslint-plugin-file-progress": "^3.0.1",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-redundant-undefined": "^1.0.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-sonarjs": "^3.0.1",
"eslint-plugin-unicorn": "^56.0.1",
"fzstd": "^0.1.1",
"globals": "^15.14.0",
"husky": "^9.1.7",
"js-yaml": "^4.1.0",
"lint-staged": "^15.2.11",
"minimist": "^1.2.8",
"msw": "^2.7.0",
"postcss-import": "^16.1.0",
"proxy": "^2.2.0",
"typescript": "5.6.3",
"typescript-eslint": "^8.18.1",
"validator": "^13.12.0",
"vite": "^6.0.3",
"vitest": "^2.1.6",
"xvfb-maybe": "^0.2.1"
},
"dependencies": {
"@docker/extension-api-client-types": "0.3.4",
"@kubernetes/client-node": "^1.0.0-rc7",
"@segment/analytics-node": "^2.2.0",
"@types/semver": "^7.5.8",
"@types/stream-json": "^1.7.8",
"@types/winreg": "^1.2.36",
"adm-zip": "^0.5.16",
"check-disk-space": "^3.4.0",
"chokidar": "^3.6.0",
"compare-versions": "^6.1.1",
"date.js": "^0.3.3",
"dockerode": "^4.0.2",
"electron-context-menu": "4.0.4",
"electron-updater": "6.3.9",
"electron-util": "^0.18.1",
"express": "^4.21.2",
"getos": "^3.2.1",
"got": "^14.4.2",
"hpagent": "^1.2.0",
"minimist": "^1.2.8",
"moment": "^2.30.1",
"os-locale": "^6.0.2",
"semver": "^7.6.3",
"stream-json": "^1.9.1",
"sudo-prompt": "^9.2.1",
"tar": "^7.4.3",
"tar-fs": "^3.0.6",
"tar-stream": "^3.1.7",
"undici": "^7.1.1",
"win-ca": "^3.5.1",
"winreg": "^1.2.5",
"yaml": "^2.6.1"
},
"pnpm": {
"overrides": {
"rollup": "^4.22.5",
"react-router>path-to-regexp": "^1.9.0",
"serve-handler>path-to-regexp": "^3.3.0",
"express>cookie": "^0.7.0",
"@docusaurus/theme-mermaid>mermaid": "^10.9.3",
"webpack-dev-server>http-proxy-middleware": "^2.0.7",
"@kubernetes/client-node>jsonpath-plus": "^10.0.7"
},
"patchedDependencies": {
"@kubernetes/client-node@1.0.0-rc7": "patches/@kubernetes__client-node@1.0.0-rc7.patch"
}
},
"packageManager": "pnpm@9.14.1+sha512.7f1de9cffea40ff4594c48a94776112a0db325e81fb18a9400362ff7b7247f4fbd76c3011611c9f8ac58743c3dc526017894e07948de9b72052f874ee2edfdcd"
}