forked from cyrusfirheir/twee3-language-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
458 lines (458 loc) · 13.1 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
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
{
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"vscode:prepublish": "npm run clean && npm run build && webpack --mode production",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch",
"clean": "rimraf out"
},
"name": "twee3-language-tools",
"displayName": "Twee 3 Language Tools",
"description": "Syntax highlighting and programmatic language tools for Twee 3.",
"version": "0.13.0",
"author": "Cyrus Firheir",
"publisher": "cyrusfirheir",
"icon": "res/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/cyrusfirheir/twee3-language-tools.git"
},
"bugs": {
"url": "https://github.com/cyrusfirheir/twee3-language-tools/issues"
},
"license": "MIT",
"engines": {
"vscode": "^1.42.0"
},
"categories": [
"Language Packs",
"Extension Packs",
"Snippets"
],
"keywords": [
"twee",
"twee3",
"twine"
],
"activationEvents": [
"onLanguage:twee3",
"onLanguage:twee3-chapbook-1",
"onLanguage:twee3-harlowe-3",
"onLanguage:twee3-sugarcube-2",
"workspaceContains:**/*.{tw,twee}"
],
"main": "./out/extension.js",
"contributes": {
"languages": [
{
"id": "twee3",
"extensions": [
".tw",
".twee"
],
"configuration": "./defs/language-configuration.json"
},
{
"id": "twee3-chapbook-1",
"aliases": [
"twee3-cb1",
"twee3-chapbook-1"
],
"configuration": "./defs/chapbook-1/language-configuration.json"
},
{
"id": "twee3-harlowe-3",
"aliases": [
"twee3-h3",
"twee3-harlowe-3"
],
"configuration": "./defs/harlowe-3/language-configuration.json"
},
{
"id": "twee3-sugarcube-2",
"aliases": [
"twee3-sc2",
"twee3-sugarcube-2"
],
"configuration": "./defs/sugarcube-2/language-configuration.json"
}
],
"grammars": [
{
"language": "twee3",
"scopeName": "source.twee3",
"path": "./defs/grammar.json",
"embeddedLanguages": {
"source.json.twee3": "json",
"source.js.twee3": "javascript",
"source.css.twee3": "css",
"source.html.twee3": "html"
}
},
{
"language": "twee3-chapbook-1",
"scopeName": "source.chapbook-1.twee3",
"path": "./defs/chapbook-1/grammar.json",
"embeddedLanguages": {
"source.json.twee3": "json",
"source.js.twee3": "javascript",
"source.css.twee3": "css",
"source.html.twee3": "html"
}
},
{
"language": "twee3-harlowe-3",
"scopeName": "source.harlowe-3.twee3",
"path": "./defs/harlowe-3/grammar.json",
"embeddedLanguages": {
"source.json.twee3": "json",
"source.js.twee3": "javascript",
"source.css.twee3": "css",
"source.html.twee3": "html"
}
},
{
"language": "twee3-sugarcube-2",
"scopeName": "source.sugarcube-2.twee3",
"path": "./defs/sugarcube-2/grammar.json",
"embeddedLanguages": {
"source.json.twee3": "json",
"source.js.twee3": "javascript",
"source.css.twee3": "css",
"source.html.twee3": "html"
}
}
],
"snippets": [
{
"language": "twee3",
"path": "./defs/snippets.json"
},
{
"language": "twee3-chapbook-1",
"path": "./defs/chapbook-1/snippets.json"
},
{
"language": "twee3-harlowe-3",
"path": "./defs/harlowe-3/snippets.json"
},
{
"language": "twee3-sugarcube-2",
"path": "./defs/sugarcube-2/snippets.json"
}
],
"semanticTokenScopes": [
{
"scopes": {
"startToken": [
"punctuation"
],
"special": [
"support.class"
],
"passageName": [
"entity.name.function"
],
"passageTags": [
"constant.language"
],
"passageMeta": [
"punctuation"
]
}
}
],
"configuration": {
"title": "Twee 3 Language Tools",
"properties": {
"twee3LanguageTools.storyformat.current": {
"type": "string",
"default": "",
"markdownDescription": "Identifier of the storyformat in use. (Managed by the `StoryData` special passage.)"
},
"twee3LanguageTools.storyformat.override": {
"type": "string",
"enum": [
"",
"chapbook-1",
"harlowe-3",
"sugarcube-2"
],
"default": "",
"markdownDescription": "Identifier of the storyformat to override the format set by `StoryData`."
},
"twee3LanguageTools.directories.include": {
"type": "array",
"default": [],
"markdownDescription": "Directories in which to look for twee files. Use glob patterns *relative* to the root of the workspace folders (e.g. `src/unprocessed/twee`, `src/static`, `external`). (Searches the entire workspace by default.)"
},
"twee3LanguageTools.directories.exclude": {
"type": "array",
"default": [
"**/node_modules/**",
"**/.git/**"
],
"markdownDescription": "Directories to exclude from the search of twee files. Use *absolute* glob patterns (e.g. `**/src/processed/**`). (Excludes `node_modules` and `.git` by default.) If passage listing is active, excluded files will not be scanned for passages. They also will not be scanned for errors until manually opened."
},
"twee3LanguageTools.passage.list": {
"type": "boolean",
"default": false,
"markdownDescription": "Display list of passages with quick 'jump' links?"
},
"twee3LanguageTools.passage.group": {
"type": "string",
"enum": [
"None",
"File",
"Folder",
"Tag"
],
"markdownEnumDescriptions": [
"`None`: Passage are not grouped.",
"`File`: Passages are grouped by the files they originate from.",
"`Folder`: Passages are grouped by the folder they originate from.",
"`Tag`: Passages are grouped by tags."
],
"default": "None",
"markdownDescription": "Group passages by:"
},
"twee3LanguageTools.twee-3.warning.spaceAfterStartToken": {
"type": "boolean",
"default": true,
"markdownDescription": "Warn about missing space after the start token (`::`) in passage headers?"
},
"twee3LanguageTools.twee-3.error.storyData.format": {
"type": "boolean",
"default": true,
"markdownDescription": "Throw an error when missing the story format field (`format`) in `StoryData` special passage?"
},
"twee3LanguageTools.twee-3.error.storyData.formatVersion": {
"type": "boolean",
"default": true,
"markdownDescription": "Throw an error when missing the story format version field (`format-version`) in `StoryData` special passage?"
},
"twee3LanguageTools.sugarcube-2.features.macroTagMatching": {
"type": "boolean",
"default": true,
"markdownDescription": "Highlight opening and closing tags of container macros?"
},
"twee3LanguageTools.sugarcube-2.warning.undefinedMacro": {
"type": "boolean",
"default": true,
"markdownDescription": "Warn about macros/widgets which were not found in definitions (`*.twee-config.yaml` or `*.twee-config.json` files) or the core SugarCube macro library?"
},
"twee3LanguageTools.sugarcube-2.warning.deprecatedMacro": {
"type": "boolean",
"default": true,
"markdownDescription": "Warn about deprecated macros/widgets?"
},
"twee3LanguageTools.sugarcube-2.warning.endMacro": {
"type": "boolean",
"default": true,
"markdownDescription": "Warn about the deprecated `<<end...>>` closing tag syntax?"
},
"twee3LanguageTools.sugarcube-2.warning.barewordLinkPassageChecking": {
"type": "boolean",
"default": true,
"markdownDescription": "Provides warnings for links like `[[passage]]` when `passage` is not a valid passage name. This could cause false positives in cases where you are using a global variable."
},
"twee3LanguageTools.sugarcube-2.error.argumentParsing": {
"type": "boolean",
"default": true,
"markdownDescription": "Provide errors about invalid argument syntax being passed into macros?"
},
"twee3LanguageTools.sugarcube-2.error.parameterValidation": {
"type": "boolean",
"default": true,
"markdownDescription": "Provide errors about invalid parameter types being passed into macros? Depends upon `argumentParsing`."
},
"twee3LanguageTools.experimental.sugarcube-2.selfClosingMacros.enable": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable self-closing syntax for container macros? [Read here](https://github.com/cyrusfirheir/twee3-language-tools/blob/master/README.md#sugarcube-2-self-closing-macros) for more information."
},
"twee3LanguageTools.experimental.sugarcube-2.selfClosingMacros.warning.irrationalSelfClose": {
"type": "boolean",
"default": true,
"markdownDescription": "Warn about self-closed instances of content focused macros (e.g. `<<script />>`)?"
},
"twee3LanguageTools.storyMap.unusedPortClosingDelay": {
"type": "integer",
"default": 5000,
"markdownDescription": "Duration in milliseconds before the story-map server port is closed after the UI in the browser window has been closed."
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "twee3-language-tools",
"title": "T3LT",
"icon": "res/treeView.svg"
}
]
},
"views": {
"twee3-language-tools": [
{
"id": "t3lt-passages-list",
"name": "Passages",
"when": "t3lt.extensionActive"
}
]
},
"viewsWelcome": [
{
"view": "t3lt-passages-list",
"contents": "Passage listing is turned off.\n[Enable](command:twee3LanguageTools.passage.list)"
}
],
"commands": [
{
"command": "twee3LanguageTools.storyMap.show",
"title": "Show Story-map",
"icon": {
"dark": "res/dark/storyMapTurnOn.svg",
"light": "res/light/storyMapTurnOn.svg"
}
},
{
"command": "twee3LanguageTools.storyMap.stop",
"title": "Stop Story-map server",
"icon": {
"dark": "res/dark/storyMapTurnOff.svg",
"light": "res/light/storyMapTurnOff.svg"
}
},
{
"command": "twee3LanguageTools.passage.pack",
"title": "Pack passages to clusters (Experimental)"
},
{
"command": "twee3LanguageTools.passage.list",
"title": "Toggle passage listing",
"icon": {
"dark": "res/dark/passageListToggle.svg",
"light": "res/light/passageListToggle.svg"
}
},
{
"command": "twee3LanguageTools.passage.jump",
"title": "Jump",
"icon": {
"dark": "res/dark/jumpToPassage.svg",
"light": "res/light/jumpToPassage.svg"
}
},
{
"command": "twee3LanguageTools.passage.group.none",
"title": "Group: None"
},
{
"command": "twee3LanguageTools.passage.group.file",
"title": "Group: File"
},
{
"command": "twee3LanguageTools.passage.group.folder",
"title": "Group: Folder"
},
{
"command": "twee3LanguageTools.passage.group.tag",
"title": "Group: Tag"
},
{
"command": "twee3LanguageTools.ifid.generate",
"title": "Generate IFID",
"category": "Twee3 Language Tools"
},
{
"command": "twee3LanguageTools.sc2.clearArgumentCache",
"title": "Clear Argument Cache",
"category": "Twee3 Language Tools"
}
],
"menus": {
"view/title": [
{
"command": "twee3LanguageTools.storyMap.show",
"when": "view == t3lt-passages-list && !t3lt.storyMap",
"group": "navigation"
},
{
"command": "twee3LanguageTools.storyMap.stop",
"when": "view == t3lt-passages-list && t3lt.storyMap",
"group": "navigation"
},
{
"command": "twee3LanguageTools.passage.list",
"when": "view == t3lt-passages-list",
"group": "navigation"
},
{
"command": "twee3LanguageTools.passage.group.none",
"when": "view == t3lt-passages-list"
},
{
"command": "twee3LanguageTools.passage.group.file",
"when": "view == t3lt-passages-list"
},
{
"command": "twee3LanguageTools.passage.group.folder",
"when": "view == t3lt-passages-list"
},
{
"command": "twee3LanguageTools.passage.group.tag",
"when": "view == t3lt-passages-list"
}
],
"view/item/context": [
{
"command": "twee3LanguageTools.passage.jump",
"when": "view == t3lt-passages-list",
"group": "inline"
}
]
}
},
"devDependencies": {
"@types/express": "^4.17.9",
"@types/glob": "^7.1.3",
"@types/minimatch": "^3.0.3",
"@types/mocha": "^7.0.2",
"@types/node": "^13.13.38",
"@types/uuid": "^8.3.0",
"@types/vscode": "^1.42.0",
"@typescript-eslint/eslint-plugin": "^3.9.0",
"@typescript-eslint/parser": "^3.9.0",
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-typescript": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"bufferutil": "^4.0.3",
"eslint": "^7.0.0",
"mocha": "^7.1.2",
"rimraf": "^3.0.2",
"sass": "^1.26.5",
"sass-loader": "^8.0.2",
"ts-loader": "^8.0.13",
"typescript": "^3.9.7",
"utf-8-validate": "^5.0.4",
"vue": "2.6.12",
"vue-class-component": "7.2.6",
"vue-property-decorator": "8.5.1",
"vue-template-compiler": "2.6.12",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12"
},
"dependencies": {
"express": "^4.17.1",
"glob": "^7.1.6",
"minimatch": "^3.0.4",
"open": "^7.3.1",
"socket.io": "^3.0.5",
"socket.io-client": "^3.0.5",
"uuid": "^8.3.2",
"yaml": "^1.10.0"
}
}