-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
240 lines (240 loc) · 6.65 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
228
229
230
231
232
233
234
235
236
237
238
239
240
{
"name": "wangyige",
"displayName": "WangYige",
"description": "My custom extension, to record some ideas.",
"version": "0.7.7",
"publisher": "wangyige",
"repository": {
"type": "github",
"url": "https://github.com/wangyige0701/vscode-custom-extension"
},
"bugs": {
"email": "[email protected]",
"url": "https://github.com/wangyige0701/vscode-custom-extension/issues"
},
"engines": {
"vscode": "^1.78.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"icon": "/resources/image/title.128.png",
"keywords": [
"background"
],
"contributes": {
"icons": {
"wangyige-clock": {
"description": "clock icon",
"default": {
"fontPath": "./resources/icon/icon.woff",
"fontCharacter": "\\E651"
}
},
"wangyige-alarmClock": {
"description": "alarm clock icon",
"default": {
"fontPath": "./resources/icon/icon.woff",
"fontCharacter": "\\E61d"
}
}
},
"commands": [
{
"command": "wangyige.background.clear",
"title": "清除背景图配置/Clear background config",
"icon": {
"light": "resources/svg/light/circle-slash.svg",
"dark": "resources/svg/dark/circle-slash.svg"
}
},
{
"command": "wangyige.background.selectStore",
"title": "选择图片储存路径/Select background store path",
"icon": {
"light": "resources/svg/light/folder-library.svg",
"dark": "resources/svg/dark/folder-library.svg"
}
},
{
"command": "wangyige.background.resetStore",
"title": "重置图片储存路径/Reset background store path",
"icon": {
"light": "resources/svg/light/refresh.svg",
"dark": "resources/svg/dark/refresh.svg"
}
},
{
"command": "wangyige.time.alarmClock",
"title": "设置闹钟/Setting alarm clock"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "custom-function",
"title": "自定义功能列表",
"icon": "resources/svg/custom.svg"
}
]
},
"views": {
"custom-function": [
{
"id": "wangyige.custom.backgroundImage",
"name": "背景图片",
"type": "webview",
"visibility": "visible"
}
]
},
"configuration": [
{
"title": "custom background image",
"properties": {
"wangyige.background.load": {
"type": "boolean",
"default": false,
"description": "软件启动后是否加载了背景图的判断"
},
"wangyige.background.opacity": {
"type": "number",
"maximum": 1,
"minimum": 0,
"default": 0.3,
"description": "背景透明度(0-1)"
},
"wangyige.background.nowImageCode": {
"type": "string",
"default": "",
"description": "当前设置的背景图对应的哈希码"
},
"wangyige.background.allImageCodes": {
"type": "object",
"default": {},
"description": "所有保存的背景图对应的哈希码数组对象,不同路径会存放在路径对应的索引下"
},
"wangyige.background.isSetBackground": {
"type": "boolean",
"default": false,
"description": "当前是否设置了背景图"
},
"wangyige.background.defaultPath": {
"type": "string",
"default": "",
"description": "选择文件时默认打开的路径"
},
"wangyige.background.storePath": {
"type": "string",
"default": "",
"description": "储存图片数据的路径,为空则是默认的`resources/background`路径"
},
"wangyige.background.isRandom": {
"type": "boolean",
"default": false,
"description": "是否开启了随机切换背景图"
},
"wangyige.background.randomList": {
"type": "array",
"default": [],
"description": "随机切换背景图时,可选择的所有背景图对应的哈希码数组"
},
"wangyige.background.randomCode": {
"type": "string",
"default": "",
"description": "下一次启动时切换的图片哈希码"
},
"wangyige.webview.VSCodeVersion": {
"type": "string",
"default": "",
"description": "记录上一次操作的vscode版本号,用于判断webview引用更新"
},
"wangyige.webview.ExtensionVersion": {
"type": "string",
"default": "",
"description": "记录上一次操作的扩展版本号,用于判断下次webview引用更新"
},
"wangyige.global.ExtensionVersion": {
"type": "string",
"default": "",
"description": "记录全局状态的扩展版本号,用于判断是否有版本修改后需要执行的操作"
}
}
}
],
"menus": {
"view/title": [
{
"command": "wangyige.background.selectStore",
"when": "view == wangyige.custom.backgroundImage",
"group": "navigation"
},
{
"command": "wangyige.background.resetStore",
"when": "view == wangyige.custom.backgroundImage && config.wangyige.background.storePath != ''",
"group": "navigation"
},
{
"command": "wangyige.background.clear",
"when": "view == wangyige.custom.backgroundImage && config.wangyige.background.isSetBackground",
"group": "navigation"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run check && npm run compile",
"vscode:uninstall": "node ./dist/uninstall",
"compile": "rollup -c",
"pre": "ts-node package/production.ts",
"check": "ts-node package/check.ts",
"watch": "ts-node package/cleardist.ts && webpack --mode development --watch",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "vitest --run"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.3",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-terser": "^0.4.3",
"@rollup/plugin-typescript": "^11.1.2",
"@types/glob": "^8.0.1",
"@types/mocha": "^10.0.1",
"@types/node": "^20.11.28",
"@types/vscode": "^1.78.0",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"@vscode/test-electron": "^2.2.2",
"@vscode/vsce": "^2.23.0",
"circular-dependency-plugin": "5.2.2",
"cssnano": "^6.0.1",
"eslint": "^8.33.0",
"fork-ts-checker-webpack-plugin": "6.5.3",
"glob": "^8.1.0",
"json5": "2.2.3",
"mocha": "^10.1.0",
"postcss": "^8.4.31",
"prebuild-install": "7.1.1",
"prettier": "^3.1.1",
"rollup": "3.27.1",
"terser": "^5.18.2",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.1",
"tsconfig-paths-webpack-plugin": "4.1.0",
"typescript": "4.9.4",
"unplugin-auto-import": "^0.17.5",
"vitest": "^1.4.0",
"webpack": "5.89.0",
"webpack-cli": "5.1.4",
"webpack-node-externals": "3.0.0"
},
"dependencies": {
"axios": "^1.4.0",
"sharp": "^0.32.5"
}
}