forked from clarkio/vscode-twitch-highlighter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
291 lines (291 loc) · 9.66 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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
{
"name": "twitch-highlighter",
"displayName": "Twitch Highlighter",
"description": "Allow your Twitch viewers to help in spotting bugs, typos, etc. by sending a command in chat that will highlight the line of code they want you to check.",
"version": "1.0.2",
"preview": false,
"publisher": "clarkio",
"engines": {
"vscode": "^1.31.0"
},
"icon": "resources/highlighterIcon.png",
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"repository": {
"type": "git",
"url": "https://github.com/clarkio/vscode-twitch-highlighter.git"
},
"license": "MIT",
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "twitchHighlighter.refreshTreeView",
"title": "Refresh"
},
{
"command": "twitchHighlighter.highlight",
"title": "Highlight Line",
"category": "Twitch Highlighter"
},
{
"command": "twitchHighlighter.unhighlight",
"title": "Remove Highlight"
},
{
"command": "twitchHighlighter.unhighlightSpecific",
"title": "Unhighlight by File and Line",
"category": "Twitch Highlighter"
},
{
"command": "twitchHighlighter.unhighlightAll",
"title": "Remove All Highlights",
"category": "Twitch Highlighter"
},
{
"command": "twitchHighlighter.gotoHighlight",
"title": "Goto Highlight"
},
{
"command": "twitchHighlighter.requestHighlight",
"title": "Request a Highlight from the Twitch Chat Client",
"category": "Twitch Highlighter"
},
{
"command": "twitchHighlighter.requestUnhighlight",
"title": "Request an Unhighlight from the Twitch Chat Client",
"category": "Twitch Highlighter"
},
{
"command": "twitchHighlighter.requestUnhighlightAll",
"title": "Request to unhighlight all highlights requested by the Twitch Chat Client",
"category": "Twitch Highlighter"
},
{
"command": "twitchHighlighter.signIn",
"title": "Sign-in to Twitch",
"category": "Twitch Highlighter"
},
{
"command": "twitchHighlighter.signOut",
"title": "Sign-out of Twitch",
"category": "Twitch Highlighter"
},
{
"command": "twitchHighlighter.connect",
"title": "Start Listening to Chat",
"category": "Twitch Highlighter"
},
{
"command": "twitchHighlighter.disconnect",
"title": "Stop Listening to Chat",
"category": "Twitch Highlighter"
},
{
"command": "twitchHighlighter.context.unhighlight",
"title": "Remove Highlight",
"category": "Twitch Highlighter"
}
],
"menus": {
"commandPalette": [
{
"command": "twitchHighlighter.refreshTreeView",
"when": "false"
},
{
"command": "twitchHighlighter.unhighlight",
"when": "false"
},
{
"command": "twitchHighlighter.gotoHighlight",
"when": "false"
},
{
"command": "twitchHighlighter.requestHighlight",
"when": "false"
},
{
"command": "twitchHighlighter.requestUnhighlight",
"when": "false"
},
{
"command": "twitchHighlighter.requestUnhighlightAll",
"when": "false"
},
{
"command": "twitchHighlighter.context.unhighlight",
"when": "false"
}
],
"view/title": [
{
"command": "twitchHighlighter.refreshTreeView",
"when": "view == twitchHighlighterTreeView || view == twitchHighlighterTreeView-explorer || view == twitchHighlighterTreeView-debug",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "twitchHighlighter.unhighlight",
"when": "view == twitchHighlighterTreeView || view == twitchHighlighterTreeView-explorer || view == twitchHighlighterTreeView-debug",
"group": "edit"
}
],
"editor/context": [
{
"command": "twitchHighlighter.context.unhighlight",
"group": "1_modification",
"when": "editorHasHighlights"
}
],
"editor/title/context": [
{
"command": "twitchHighlighter.unhighlightAll",
"group": "3_open",
"when": "editorHasHighlights"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "twitchHighlighter-explorer",
"icon": "resources/highlighterIcon.svg",
"title": "Twitch Highlighter"
}
]
},
"views": {
"explorer": [
{
"id": "twitchHighlighterTreeView-explorer",
"name": "Highlights"
}
],
"debug": [
{
"id": "twitchHighlighterTreeView-debug",
"name": "Highlights"
}
],
"twitchHighlighter-explorer": [
{
"id": "twitchHighlighterTreeView",
"name": "Highlights",
"when": "config.twitchHighlighter.showHighlightsInActivityBar"
}
]
},
"configuration": {
"type": "object",
"title": "Twitch Highlighter",
"properties": {
"twitchHighlighter.channels": {
"type": "string",
"default": "",
"description": "A comma separated list of channel name(s) to connect to on Twitch. Example: 'clarkio', Another Example: 'clarkio, parithon'"
},
"twitchHighlighter.nickname": {
"type": "string",
"default": "",
"description": "The username the bot should use when joining a Twitch channel."
},
"twitchHighlighter.highlightColor": {
"type": "string",
"default": "green",
"markdownDescription": "Background color of the decoration. Use rgba() and define transparent background colors to play well with other decorations. Example: green"
},
"twitchHighlighter.highlightFontColor": {
"type": "string",
"default": "white",
"markdownDescription": "Font color of the decoration. Use rgba() and define transparent background colors to play well with other decorations. Example: white"
},
"twitchHighlighter.highlightBorder": {
"type": "string",
"default": "2px solid white",
"description": "CSS styling property that will be applied to text enclosed by a decoration."
},
"twitchHighlighter.announceBot": {
"title": "Twitch Highlighter",
"type": "boolean",
"default": true,
"description": "Whether or not the bot should announce its joining or leaving the chat room"
},
"twitchHighlighter.joinMessage": {
"type": "string",
"default": "Twitch Highlighter in the house!",
"description": "The message the bot will say when joining a chat room"
},
"twitchHighlighter.leaveMessage": {
"type": "string",
"default": "Twitch Highlighter has left the building!",
"description": "The message the bot will say when leaving a chat room"
},
"twitchHighlighter.requiredBadges": {
"type": "array",
"default": [],
"markdownDescription": "A list of badges required to use the highlighter command. The use must have at least one of these badges to use the command. Leave blank for no requirement. Example: moderator, subscriber, vip.",
"items": {
"type": "string",
"pattern": "(admin|bits|broadcaster|global_mod|moderator|subscriber|staff|turbo|premium|follower)*",
"errorMessage": "Expected one of the following: admin, bits, broadcaster, global_admin, moderator, subscriber, staff, turbo, premium, follower"
}
},
"twitchHighlighter.unhighlightOnDisconnect": {
"type": "boolean",
"default": false,
"description": "Unhighlight all lines when disconnected from the chat service."
},
"twitchHighlighter.showHighlightsInActivityBar": {
"type": "boolean",
"default": false,
"description": "Show the Highlights icon in the activity bar to display the tree view."
},
"twitchHighlighter.usageTip": {
"type": "string",
"default": "💡 To use the !line command, use the following format: !line <number> --or-- multiple lines: !line <start>-<end> --or-- with a comment: !line <number> <comment>",
"description": "A tip shared by the bot when a user chats: '!line'."
}
}
}
},
"scripts": {
"vscode:prepublish": "webpack --config webpack.config.js --mode production",
"compile": "copyfiles -au 1 ./src/**/*.htm out/ && tsc -p ./",
"watch": "copyfiles -au 1 ./src/**/*.htm out/ && tsc --watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "npm run compile && node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"@types/keytar": "^4.0.1",
"@types/mocha": "^2.2.42",
"@types/node": "^8.10.62",
"@types/request": "^2.48.3",
"@types/tmi.js": "^1.4.0",
"@types/uuid": "^3.4.5",
"bufferutil": "^4.0.1",
"clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^6.0.1",
"copyfiles": "^2.3.0",
"mocha-junit-reporter": "^1.18.0",
"spec-xunit-file": "0.0.1-3",
"ts-loader": "^5.3.3",
"tslint": "^5.8.0",
"typescript": "^2.6.1",
"utf-8-validate": "^5.0.2",
"vscode": "^1.1.33",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11"
},
"dependencies": {
"request": "^2.88.0",
"tmi.js": "^1.4.2",
"url": "^0.11.0",
"uuid": "^3.3.3"
}
}