-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpackage.json
More file actions
151 lines (151 loc) · 5.09 KB
/
Copy pathpackage.json
File metadata and controls
151 lines (151 loc) · 5.09 KB
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
{
"name": "rhel-vms",
"displayName": "RHEL VMs",
"description": "Create Red Hat Enterprise Linux VMs easily",
"version": "0.13.0-next",
"icon": "icon.png",
"license": "Apache-2.0",
"publisher": "redhat",
"engines": {
"node": ">=24.0.0",
"podman-desktop": ">=1.10.0"
},
"main": "./dist/extension.js",
"extensionDependencies": [
"redhat.redhat-authentication"
],
"contributes": {
"configuration": {
"title": "RHEL VMs",
"properties": {
"rhel-vms.factory.machine.name": {
"type": "string",
"scope": "VmProviderConnectionFactory",
"default": "rhel",
"description": "Machine Name"
},
"rhel-vms.factory.machine.image": {
"type": "string",
"enum": ["RHEL 10", "RHEL 9", "local image on disk"],
"scope": "VmProviderConnectionFactory",
"default": "RHEL 10",
"description": "Image to download"
},
"rhel-vms.factory.machine.force-download": {
"type": "boolean",
"scope": "VmProviderConnectionFactory",
"default": false,
"description": "Force download image, do not get from cache",
"when": "!rhel-vms.localImage"
},
"rhel-vms.factory.machine.image-path": {
"type": "string",
"format": "file",
"scope": "VmProviderConnectionFactory",
"default": "",
"description": "Image Path",
"when": "rhel-vms.localImage"
},
"rhel-vms.factory.machine.register": {
"type": "boolean",
"scope": "VmProviderConnectionFactory",
"default": true,
"description": "Register machine via subscription-manager"
},
"rhel-vms.factory.machine.cpus": {
"type": "number",
"format": "cpu",
"default": "HOST_HALF_CPU_CORES",
"minimum": 1,
"maximum": "HOST_TOTAL_CPU",
"scope": "VmProviderConnectionFactory",
"description": "CPU(s)"
},
"rhel-vms.factory.machine.memory": {
"type": "number",
"format": "memory",
"minimum": 1000000000,
"default": 4000000000,
"maximum": "HOST_TOTAL_MEMORY",
"scope": "VmProviderConnectionFactory",
"step": 500000000,
"description": "Memory"
},
"rhel-vms.factory.machine.diskSize": {
"type": "number",
"format": "diskSize",
"default": 100000000000,
"minimum": 10000000000,
"maximum": "HOST_TOTAL_DISKSIZE",
"step": 500000000,
"scope": "VmProviderConnectionFactory",
"description": "Disk size"
},
"rhel-vms.factory.machine.win.provider": {
"type": "string",
"default": "wsl",
"enum": [
"wsl",
"hyperv"
],
"scope": "VmProviderConnectionFactory",
"description": "Provider Type",
"when": "rhel-vms.wslHypervEnabled"
}
}
}
},
"scripts": {
"generate:subscription-v1": "npx openapi-typescript src/rh-api/subscription-schema-v1.json -o src-gen/subscription-v1.d.ts",
"build": "pnpm generate:subscription-v1 && vite build",
"test": "vitest run --coverage --passWithNoTests",
"test:watch": "vitest watch --coverage --passWithNoTests",
"format:check": "prettier --check \"src/**/*.ts\"",
"format:fix": "prettier --write \"src/**/*.ts\"",
"lint:check": "eslint .",
"lint:fix": "eslint . --fix",
"typecheck:backend": "tsc --noEmit",
"watch": "vite build -w",
"test:e2e": "cd tests/playwright && npm run test:e2e",
"cleanup": "rm -rf node_modules dist src-gen",
"build-image": "pnpm cleanup && podman build . -f build/Containerfile"
},
"dependencies": {
"@crc-org/macadam.js": "0.7.0",
"@podman-desktop/api": "1.26.2",
"compare-versions": "^6.1.1",
"openapi-fetch": "^0.17.0",
"semver": "^7.8.0",
"ssh2": "^1.17.0"
},
"devDependencies": {
"@eslint/compat": "^2.1.0",
"@eslint/eslintrc": "^3.3.5",
"@eslint/js": "^10.0.1",
"@types/node": "^24",
"@types/ssh2": "^1.15.5",
"@typescript-eslint/eslint-plugin": "^8.59.3",
"@typescript-eslint/parser": "^8.59.3",
"@vitest/coverage-v8": "^4",
"eslint": "^10.4.0",
"eslint-import-resolver-custom-alias": "^1.3.2",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-etc": "^2.0.3",
"eslint-plugin-file-progress": "^4.0.0",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-redundant-undefined": "^1.0.0",
"eslint-plugin-simple-import-sort": "^13.0.0",
"eslint-plugin-sonarjs": "^4.0.3",
"eslint-plugin-unicorn": "^64.0.0",
"globals": "^17.6.0",
"memfs": "^4.57.2",
"openapi-typescript": "^7.13.0",
"prettier": "^3.8.3",
"typescript": "^5.9.3",
"typescript-eslint": "^8.59.3",
"vite": "^8.0.13",
"vitest": "^4"
},
"packageManager": "pnpm@10.20.0+sha512.cf9998222162dd85864d0a8102e7892e7ba4ceadebbf5a31f9c2fce48dfce317a9c53b9f6464d1ef9042cba2e02ae02a9f7c143a2b438cd93c91840f0192b9dd"
}