-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
203 lines (203 loc) · 6.17 KB
/
package.json
File metadata and controls
203 lines (203 loc) · 6.17 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
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
{
"publisher": "subframe7536",
"name": "codeimg",
"displayName": "CodeImg",
"version": "0.4.5",
"packageManager": "pnpm@10.22.0",
"description": "Generate beautiful image for you code and terminal with your favorite font and theme",
"author": "subframe7536",
"repository": {
"type": "git",
"url": "https://github.com/subframe7536/vscode-codeimg"
},
"main": "dist/extension/index.js",
"icon": "./resources/icon.png",
"engines": {
"node": ">=18",
"vscode": "^1.75.0"
},
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"commands": [
{
"command": "codeimg.open",
"title": "CodeImg: open preview panel"
},
{
"command": "codeimg.generate.code",
"title": "CodeImg: generate image for code 📷"
},
{
"command": "codeimg.generate.terminal",
"title": "CodeImg: generate image for terminal 🛠️"
}
],
"menus": {
"editor/context": [
{
"command": "codeimg.generate.code"
}
]
},
"configuration": {
"type": "object",
"title": "CodeImg",
"properties": {
"codeimg.background": {
"scope": "resource",
"type": "string",
"default": "linear-gradient(345deg, rgb(180 218 255) 0%, rgb(232 209 255) 100%)",
"description": "The CSS background of the snippet's container. If you don't want to it, set it `none`"
},
"codeimg.boxShadow": {
"scope": "resource",
"type": "string",
"default": "medium",
"enum": [
"none",
"small",
"medium",
"large"
],
"description": "The CSS box-shadow for the snippet's container. If you don't want to it, set it `none`"
},
"codeimg.containerPadding": {
"scope": "resource",
"type": "string",
"default": "3rem",
"description": "The CSS padding for the snippet's container. If you don't want to it, set it `none`"
},
"codeimg.border": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Border for the snippet's container. Only in dark theme"
},
"codeimg.debounce": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Whether to update the code snippet with debounce when selection changes"
},
"codeimg.roundedCorners": {
"scope": "resource",
"type": "string",
"default": "1rem",
"description": "The CSS rounded corners for the snippet's container. If you don't want to it, set it `none`"
},
"codeimg.scale": {
"scope": "resource",
"type": "number",
"default": 2,
"description": "The scale of the screenshot"
},
"codeimg.format": {
"scope": "resource",
"type": "string",
"default": "png",
"enum": [
"jpg",
"png",
"webp"
],
"description": "The format of the screenshot"
},
"codeimg.terminalLineHeight": {
"scope": "resource",
"type": "number",
"default": 1.3,
"description": "Line height of terminal when generating terminal image"
},
"codeimg.showWindowControls": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Display OS X style window controls"
},
"codeimg.windowControlsColor": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Add color in window controls"
},
"codeimg.showWindowTitle": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Display window title with open folder / file name"
},
"codeimg.showLineNumbers": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Display line numbers"
},
"codeimg.realLineNumber": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "The line number begins with the actual line number instead of starting at 1"
},
"codeimg.wrapLine": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "Wrap long lines to fit the container width"
},
"codeimg.trimPrefixWhitespaces": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Trim the prefix whitespaces in every line and keep indent. Also trim empty lines around"
}
}
}
},
"scripts": {
"dev": "vite",
"dev:ui": "vite serve dev",
"build": "vite build",
"prepare": "pnpm run update",
"update": "vscode-ext-gen --output config/generated/meta.ts",
"vscode:prepublish": "pnpm run build",
"pack": "vsce package --no-dependencies",
"typecheck": "tsc --noEmit",
"release": "pnpm run typecheck && pnpm run format && bumpp --all",
"format": "eslint --fix"
},
"devDependencies": {
"@iconify-json/lucide": "^1.2.73",
"@solid-hooks/core": "^0.6.0",
"@solid-hooks/state": "^0.1.9",
"@subframe7536/eslint-config": "^1.3.2",
"@subframe7536/type-utils": "^0.2.0",
"@tomjs/vite-plugin-vscode": "^4.2.1",
"@tomjs/vscode-extension-webview": "^2.0.0",
"@types/node": "^22.19.1",
"@types/vscode": "1.75.0",
"@types/vscode-webview": "^1.57.5",
"@unocss/reset": "^66.5.7",
"@vscode/vsce": "^3.7.0",
"bumpp": "^10.3.1",
"cls-variant": "^0.2.1",
"eslint": "^9.39.1",
"eslint-plugin-solid": "^0.14.5",
"modern-screenshot": "^4.6.7",
"solid-js": "^1.9.10",
"typescript": "^5.9.3",
"unocss": "^66.5.7",
"unocss-preset-completion": "^0.2.1",
"vite": "^7.2.2",
"vite-plugin-solid": "^2.11.10",
"vscode-ext-gen": "^1.4.0"
},
"pnpm": {
"onlyBuiltDependencies": [
"@vscode/vsce-sign",
"esbuild",
"keytar"
]
}
}