forked from podman-desktop/podman-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
190 lines (190 loc) · 11.5 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
{
"name": "podman-desktop",
"productName": "Podman Desktop",
"repository": "https://github.com/containers/podman-desktop",
"version": "1.8.0-next",
"license": "apache-2.0",
"type": "module",
"private": true,
"engines": {
"node": ">=18.12.0",
"npm": ">=8.19.2"
},
"main": "packages/main/dist/index.cjs",
"workspaces": {
"packages": [
"packages/*",
"extensions/*",
"website",
"website-argos",
"tools"
]
},
"scripts": {
"build": "npm run build:main && npm run build:preload && npm run build:preload-docker-extension && npm run build:preload-webview && 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 && 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",
"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:renderer && npm run test:tools && npm run test:extensions",
"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' -- vitest run tests/src/ --pool=threads --poolOptions.threads.singleThread --poolOptions.threads.isolate --no-file-parallelism",
"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' -- vitest run tests/src/*smoke.spec.ts --pool=threads --poolOptions.threads.singleThread --poolOptions.threads.isolate --no-file-parallelism",
"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' -- vitest run tests/src/extension-installation.spec.ts --pool=threads --poolOptions.threads.singleThread --poolOptions.threads.isolate --no-file-parallelism",
"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 --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": "vitest -c packages/renderer/vite.config.js run packages/renderer --passWithNoTests --coverage",
"test:tools": "vitest run tools --passWithNoTests --coverage",
"test:watch": "vitest watch",
"watch": "node scripts/watch.mjs",
"format:check": "prettier --cache --check \"{extensions,packages,tests,types,tools,website-argos}/**/*.{ts,svelte}\" \"extensions/*/scripts/build.js\" \"website/**/*.{md,js}\" \"website/src/**/*.{css,tsx}\"",
"format:fix": "prettier --cache --write \"{extensions,packages,tests,types,tools,website-argos}/**/*.{ts,svelte}\" \"extensions/*/scripts/build.js\" \"website/**/*.{md,js}\" \"website/src/**/*.{css,tsx}\"",
"markdownlint:check": "markdownlint-cli2 \"website/**/*.md\" \"#website/node_modules\"",
"markdownlint:fix": "markdownlint-cli2-fix \"website/**/*.md\" \"#website/node_modules\"",
"lint:clean": "rimraf .eslintcache",
"lint:check": "node --max-old-space-size=4096 node_modules/eslint/bin/eslint.js --cache . --ext js,ts,tsx,svelte",
"lint:fix": "node --max-old-space-size=4096 node_modules/eslint/bin/eslint.js --cache . --fix --ext js,ts,tsx,svelte",
"svelte:check": "svelte-check",
"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: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",
"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:renderer && npm run typecheck:preload-dd-extension && npm run typecheck:preload-webview && npm run typecheck:extensions",
"website:build": "cd website && yarn run docusaurus build",
"website:prod": "cd website && yarn run docusaurus build && yarn serve",
"website:dev": "cd website && yarn run docusaurus start",
"website:screenshots": "cd website-argos && yarn run screenshot",
"prepare": "husky install",
"postinstall": "playwright install"
},
"lint-staged": {
"*.{js,ts,tsx,svelte}": [
"node --max-old-space-size=4096 node_modules/eslint/bin/eslint.js --cache --fix",
"prettier --cache --write"
],
"*.{md,css,json}": "prettier --write"
},
"devDependencies": {
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.1",
"@electron/fuses": "^1.7.0",
"@playwright/test": "1.41.2",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@types/adm-zip": "^0.5.5",
"@types/dockerode": "^3.3.23",
"@types/express": "^4.17.21",
"@types/getos": "^3.0.4",
"@types/js-yaml": "^4.0.9",
"@types/node": "^18",
"@types/tar": "^6.1.11",
"@types/tar-fs": "^2.0.4",
"@types/validator": "^13.11.9",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^6.21.0",
"@vitest/coverage-v8": "^1.2.2",
"cross-env": "7.0.3",
"dts-for-context-bridge": "0.7.1",
"electron": "28.2.2",
"electron-builder": "23.6.0",
"electron-builder-notarize": "^1.5.1",
"electron-devtools-installer": "^3.2.0",
"eslint": "^8.56.0",
"eslint-import-resolver-custom-alias": "^1.3.2",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-etc": "^2.0.3",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-redundant-undefined": "^1.0.0",
"eslint-plugin-sonarjs": "^0.24.0",
"husky": "^9.0.11",
"js-yaml": "^4.1.0",
"lint-staged": "^15.2.2",
"nock": "^13.5.0",
"postcss-import": "^16.0.0",
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.1",
"proxy": "^2.1.1",
"typescript": "5.3.3",
"validator": "^13.11.0",
"vite": "^5.1.1",
"vitest": "^1.2.2",
"xvfb-maybe": "^0.2.1"
},
"dependencies": {
"@docker/extension-api-client-types": "0.3.4",
"@kubernetes/client-node": "^0.20.0",
"@segment/analytics-node": "^2.0.0",
"@types/stream-json": "^1.7.7",
"adm-zip": "^0.5.10",
"check-disk-space": "^3.4.0",
"chokidar": "^3.6.0",
"compare-versions": "^6.1.0",
"date.js": "^0.3.3",
"dockerode": "^4.0.2",
"electron-context-menu": "^3.6.1",
"electron-updater": "6.1.7",
"electron-util": "^0.17.2",
"express": "^4.18.2",
"getos": "^3.2.1",
"got": "^13.0.0",
"hpagent": "^1.2.0",
"moment": "^2.30.1",
"os-locale": "^6.0.2",
"stream-json": "^1.8.0",
"sudo-prompt": "^9.2.1",
"tar": "^6.2.0",
"tar-fs": "^3.0.5",
"undici": "^6.6.2",
"win-ca": "^3.5.1",
"yaml": "^2.3.4"
},
"resolutions": {
"trim": "0.0.3",
"ssh2": "1.11.0",
"@types/node": "^18"
}
}