generated from antfu/starter-vscode
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
217 lines (217 loc) · 7.33 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
{
"publisher": "subframe7536",
"name": "custom-ui-style",
"displayName": "Custom UI Style",
"version": "0.5.1",
"private": true,
"packageManager": "[email protected]",
"description": "Custom ui css style in both editor and webview, unify global font family, setup background image",
"author": "subframe7536 <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/subframe7536/vscode-custom-ui-style#readme",
"repository": {
"type": "git",
"url": "https://github.com/subframe7536/vscode-custom-ui-style"
},
"bugs": {
"url": "https://github.com/subframe7536/vscode-custom-ui-style/issues"
},
"categories": [
"Other"
],
"main": "./dist/index.js",
"icon": "res/icon.png",
"files": [
"LICENSE.md",
"dist/*",
"res/*"
],
"engines": {
"vscode": "^1.89.0"
},
"activationEvents": [
"onStartupFinished"
],
"extensionKind": [
"ui"
],
"contributes": {
"commands": [
{
"command": "custom-ui-style.reload",
"title": "Reload",
"category": "Custom UI Style"
},
{
"command": "custom-ui-style.rollback",
"title": "Rollback",
"category": "Custom UI Style"
}
],
"configuration": {
"type": "object",
"title": "Custom UI Style",
"properties": {
"custom-ui-style.preferRestart": {
"scope": "resource",
"type": "boolean",
"description": "Prefer to restart vscode after update instead of reload window only (ALWAYS true when VSCode version >= 1.95.0)",
"default": false
},
"custom-ui-style.reloadWithoutPrompting": {
"scope": "resource",
"type": "boolean",
"description": "Reload/restart immediately, instead of having to click 'Reload Window' in the notification",
"default": false
},
"custom-ui-style.watch": {
"scope": "resource",
"type": "boolean",
"description": "Watch configuration changes and reload window automatically (ignore imports)",
"default": true
},
"custom-ui-style.electron": {
"scope": "application",
"type": "object",
"description": "Electron BrowserWindow options"
},
"custom-ui-style.font.monospace": {
"scope": "application",
"type": "string",
"description": "Global monospace font family that apply in both editor and webview, fallback to editor's font family"
},
"custom-ui-style.font.sansSerif": {
"scope": "application",
"type": "string",
"description": "Global sans-serif font family that apply in both editor and webview"
},
"custom-ui-style.background.url": {
"scope": "machine",
"type": "string",
"description": "Full-screen background image url (will not sync), support protocol: 'https://', 'file://', 'data:'"
},
"custom-ui-style.background.syncURL": {
"scope": "application",
"type": "string",
"description": "Full-screen background image url (will sync), support variable: [${userHome}, ${env:your_env_name:optional_fallback_value}], has lower priority than 'Url', support protocol: 'https://', 'file://', 'data:'"
},
"custom-ui-style.background.opacity": {
"scope": "application",
"type": "number",
"description": "Background image opacity (0 ~ 1)",
"default": 0.9
},
"custom-ui-style.background.size": {
"scope": "application",
"type": "string",
"enum": ["cover", "contain"],
"description": "Background image size",
"default": "cover"
},
"custom-ui-style.background.position": {
"scope": "application",
"type": "string",
"description": "Background image position",
"default": "center"
},
"custom-ui-style.external.loadStrategy": {
"scope": "application",
"type": "string",
"enum": ["refetch", "cache", "disable"],
"enumDescriptions": [
"Force refetch while reloading",
"Skip refetch if nothing changed and all resources are fetched",
"Remove all resources"
],
"description": "Load strategy for external CSS or JS resources",
"default": "refetch"
},
"custom-ui-style.external.imports": {
"scope": "application",
"type": "array",
"description": "External CSS or JS resources, support variable: [${userHome}, ${env:your_env_name:optional_fallback_value}], support protocol: 'https://', 'file://'",
"items": {
"oneOf": [
{
"type": "string",
"pattern": "^(file://|https://).+\\.(css|js)$",
"description": "Path to local CSS or JS file, must end with '.js' or '.css', support variable: [${userHome}, ${env:your_env_name:optional_fallback_value}]"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"css",
"js",
"js-module"
]
},
"url": {
"type": "string",
"pattern": "^https:\\/\\/",
"description": "URL to CSS or JS script, only support 'https://' protocol"
}
}
}
]
}
},
"custom-ui-style.stylesheet": {
"scope": "application",
"type": "object",
"description": "Custom css for editor, support nest selectors"
},
"custom-ui-style.webview.monospaceSelector": {
"scope": "application",
"type": "array",
"items": {
"type": "string"
},
"description": "Custom monospace selector in webview"
},
"custom-ui-style.webview.sansSerifSelector": {
"scope": "application",
"type": "array",
"items": {
"type": "string"
},
"description": "Custom sans-serif selector in webview"
},
"custom-ui-style.webview.stylesheet": {
"scope": "application",
"type": "object",
"description": "Custom css for webview, support nest selectors"
}
}
}
},
"scripts": {
"build": "pnpm run typecheck && tsup --minify --treeshake",
"dev": "tsup --watch",
"prepare": "pnpm run update",
"update": "vscode-ext-gen --output src/generated/meta.ts",
"format": "eslint . --fix",
"vscode:prepublish": "pnpm run build",
"publish": "vsce publish --no-dependencies",
"pack": "vsce package --no-dependencies",
"typecheck": "tsc --noEmit",
"release": "bumpp --all",
"vscode:uninstall": "node ./dist/uninstall.js"
},
"devDependencies": {
"@subframe7536/eslint-config": "^1.1.3",
"@subframe7536/type-utils": "^0.1.6",
"@types/node": "^20.17.10",
"@types/vscode": "1.89.0",
"@vscode/vsce": "^3.2.1",
"atomically": "^2.0.3",
"bumpp": "^9.9.1",
"eslint": "^9.17.0",
"reactive-vscode": "0.2.6",
"tsup": "^8.3.5",
"typescript": "^5.7.2",
"vscode-ext-gen": "^0.5.2"
}
}