forked from vuejs/vetur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
537 lines (537 loc) · 17.2 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
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
{
"name": "vetur",
"displayName": "Vetur",
"description": "Vue tooling for VS Code",
"author": "Pine Wu <octref@gmail.com>",
"icon": "asset/vue.png",
"version": "0.24.0",
"publisher": "octref",
"scripts": {
"build:grammar": "tsc -p . && node dist/scripts/build_grammar",
"compile": "run-s compile:source copy:snippets",
"compile:source": "tsc -b .",
"watch": "run-s compile copy:snippets watch:build",
"watch:build": "tsc -b -w .",
"copy:snippets": "bash ./build/copy-snippets.sh",
"lint": "tslint -c tslint.json client/**/*.ts server/**/*.ts scripts/**/*.ts",
"test:server": "npm run compile && cd server && npm test",
"test:e2e": "node ./dist/test/codeTestRunner.js",
"test:grammar": "node ./dist/test/codeTestRunner.js grammar",
"test:lsp": "node ./dist/test/codeTestRunner.js lsp",
"test:int": "node ./dist/test/codeTestRunner.js interpolation",
"test:vue3": "node ./dist/test/codeTestRunner.js vue3",
"test": "run-s compile test:server test:e2e",
"docs": "bash ./build/update-docs.sh",
"prepare-publish": "./build/release-cleanup.sh"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm run test:server"
}
},
"lint-staged": {
"*.ts": [
"tslint --fix"
],
"*.{js,ts,yaml}": [
"prettier --write"
]
},
"repository": {
"type": "git",
"url": "https://github.com/vuejs/vetur.git"
},
"keywords": [
"vetur",
"Vue",
"vue",
"vuejs"
],
"categories": [
"Programming Languages"
],
"engines": {
"vscode": "^1.42.0"
},
"dependencies": {
"vscode-languageclient": "^6.1.3",
"vscode-languageserver-types": "^3.15.0-next.9"
},
"activationEvents": [
"onLanguage:vue"
],
"main": "./dist/client/vueMain",
"contributes": {
"commands": [
{
"command": "vetur.generateGrammar",
"title": "Vetur: Generate grammar from `vetur.grammar.customBlocks`"
},
{
"command": "vetur.showCorrespondingVirtualFile",
"title": "Vetur: Show corresponding virtual file and sourcemap"
},
{
"command": "vetur.openUserScaffoldSnippetFolder",
"title": "Vetur: Open user scaffold snippet folder"
}
],
"breakpoints": [
{
"language": "vue"
}
],
"languages": [
{
"id": "vue",
"aliases": [
"Vue",
"vue"
],
"extensions": [
".vue"
],
"configuration": "./languages/vue-language-configuration.json"
},
{
"id": "vue-html",
"aliases": [
"Vue-html"
],
"configuration": "./languages/vue-html-language-configuration.json"
},
{
"id": "vue-postcss",
"aliases": [
"Vue-PostCSS",
"Vue-POSTCSS",
"vue-postcss"
],
"configuration": "./languages/vue-postcss-language-configuration.json"
}
],
"grammars": [
{
"language": "vue",
"scopeName": "source.vue",
"path": "./syntaxes/vue-generated.json",
"embeddedLanguages": {
"text.html.basic": "html",
"text.html.vue-html": "vue-html",
"text.jade.slm": "slm",
"text.pug": "jade",
"text.haml": "haml",
"text.html.liquid": "liquid",
"source.css": "css",
"source.css.scss": "scss",
"source.css.less": "less",
"source.css.postcss": "vue-postcss",
"source.sass": "sass",
"source.stylus": "stylus",
"source.js": "javascript",
"source.ts": "typescript",
"source.coffee": "coffeescript",
"text.html.markdown": "md",
"source.yaml": "yaml",
"source.json": "json",
"source.php": "php",
"source.graphql": "graphql"
}
},
{
"language": "vue-postcss",
"scopeName": "source.css.postcss",
"path": "./syntaxes/vue-postcss.json"
},
{
"language": "vue-html",
"scopeName": "text.html.vue-html",
"path": "./syntaxes/vue-html.tmLanguage.json",
"embeddedLanguages": {
"source.js": "javascript"
}
},
{
"path": "./syntaxes/pug/directives.tmLanguage.json",
"scopeName": "vue.pug.directives",
"injectTo": [
"source.vue"
]
},
{
"path": "./syntaxes/pug/interpolations.tmLanguage.json",
"scopeName": "vue.pug.interpolations",
"injectTo": [
"source.vue"
]
},
{
"scopeName": "markdown.vue.codeblock",
"path": "./syntaxes/markdown-vue.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.vue": "vue"
}
}
],
"configuration": {
"title": "Vetur",
"properties": {
"vetur.useWorkspaceDependencies": {
"type": "boolean",
"default": false,
"description": "Use dependencies from workspace. Currently only for TypeScript.",
"scope": "application"
},
"vetur.completion.autoImport": {
"type": "boolean",
"default": true,
"description": "Include completion for module export and auto import them"
},
"vetur.completion.scaffoldSnippetSources": {
"type": "object",
"default": {
"workspace": "💼",
"user": "🗒️",
"vetur": "✌"
},
"properties": {
"workspace": {
"type": "string",
"default": "💼",
"description": "Show Scaffold Snippets from `<WORKSPACE>/.vscode/vetur/snippets`."
},
"user": {
"type": "string",
"default": "🗒️",
"description": "Show Scaffold Snippets from `<USER-DATA-DIR>/User/snippets/vetur`."
},
"vetur": {
"type": "string",
"default": "✌",
"description": "Show Scaffold Snippets bundled in Vetur."
}
},
"description": "Where Vetur source Scaffold Snippets from and how to indicate them. Set a source to \"\" to disable it.\n\n- workspace: `<WORKSPACE>/.vscode/vetur/snippets`.\n- user: `<USER-DATA-DIR>/User/snippets/vetur`.\n- vetur: Bundled in Vetur.\n\nThe default is:\n```\n\"vetur.completion.scaffoldSnippetSources\": {\n \"workspace\": \"💼\",\n \"user\": \"🗒️\",\n \"vetur\": \"✌\"\n}\n```\n\nAlternatively, you can do:\n\n```\n\"vetur.completion.scaffoldSnippetSources\": {\n \"workspace\": \"(W)\",\n \"user\": \"(U)\",\n \"vetur\": \"(V)\"\n}\n```\n\nRead more: https://vuejs.github.io/vetur/snippet.html."
},
"vetur.completion.tagCasing": {
"type": "string",
"default": "kebab",
"enum": [
"initial",
"kebab"
],
"enumDescriptions": [
"use the key in `components: {...}` as is for tag completion and do not force any casing",
"kebab-case completion for <my-tag>"
],
"description": "Casing conversion for tag completion"
},
"vetur.grammar.customBlocks": {
"type": "object",
"default": {
"docs": "md",
"i18n": "json"
},
"description": "Mapping from custom block tag name to language name. Used for generating grammar to support syntax highlighting for custom blocks."
},
"vetur.validation.template": {
"type": "boolean",
"default": true,
"description": "Validate vue-html in <template> using eslint-plugin-vue"
},
"vetur.validation.style": {
"type": "boolean",
"default": true,
"description": "Validate css/scss/less/postcss in <style>"
},
"vetur.validation.script": {
"type": "boolean",
"default": true,
"description": "Validate js/ts in <script>"
},
"vetur.format.enable": {
"type": "boolean",
"default": true,
"description": "Enable/disable the Vetur document formatter."
},
"vetur.format.options.tabSize": {
"type": "number",
"default": 2,
"description": "Number of spaces per indentation level. Inherited by all formatters."
},
"vetur.format.options.useTabs": {
"type": "boolean",
"default": false,
"description": "Use tabs for indentation. Inherited by all formatters."
},
"vetur.format.defaultFormatter.html": {
"type": "string",
"default": "prettyhtml",
"enum": [
"none",
"prettyhtml",
"js-beautify-html",
"prettier"
],
"enumDescriptions": [
"disable formatting",
"prettyhtml",
"html formatter of js-beautify",
"prettier"
],
"description": "Default formatter for <template> region"
},
"vetur.format.defaultFormatter.pug": {
"type": "string",
"default": "prettier",
"enum": [
"none",
"prettier"
],
"enumDescriptions": [
"disable formatting",
"prettier"
],
"description": "Default formatter for <template lang='pug'> region"
},
"vetur.format.defaultFormatter.css": {
"type": "string",
"default": "prettier",
"enum": [
"none",
"prettier"
],
"enumDescriptions": [
"disable formatting",
"css formatter using css parser from prettier"
],
"description": "Default formatter for <style> region"
},
"vetur.format.defaultFormatter.postcss": {
"type": "string",
"default": "prettier",
"enum": [
"none",
"prettier"
],
"enumDescriptions": [
"disable formatting",
"postcss formatter using css parser from prettier"
],
"description": "Default formatter for <style lang='postcss'> region"
},
"vetur.format.defaultFormatter.scss": {
"type": "string",
"default": "prettier",
"enum": [
"none",
"prettier"
],
"enumDescriptions": [
"disable formatting",
"scss formatter using scss parser from prettier"
],
"description": "Default formatter for <style lang='scss'> region"
},
"vetur.format.defaultFormatter.sass": {
"type": "string",
"default": "sass-formatter",
"enum": [
"none",
"sass-formatter"
],
"enumDescriptions": [
"disable formatting",
"sass formatter"
],
"description": "Default formatter for <style lang='sass'> region"
},
"vetur.format.defaultFormatter.less": {
"type": "string",
"default": "prettier",
"enum": [
"none",
"prettier"
],
"enumDescriptions": [
"disable formatting",
"less formatter using postcss parser from prettier"
],
"description": "Default formatter for <style lang='less'> region"
},
"vetur.format.defaultFormatter.stylus": {
"type": "string",
"default": "stylus-supremacy",
"enum": [
"none",
"stylus-supremacy"
],
"enumDescriptions": [
"disable formatting",
"stylus formatter from stylus-supremacy"
],
"description": "Default formatter for <style lang='stylus'> region"
},
"vetur.format.defaultFormatter.js": {
"type": "string",
"default": "prettier",
"enum": [
"none",
"prettier",
"prettier-eslint",
"vscode-typescript"
],
"enumDescriptions": [
"disable formatting",
"js formatter from prettier",
"prettier-eslint",
"js formatter from TypeScript"
],
"description": "Default formatter for <script> region"
},
"vetur.format.defaultFormatter.ts": {
"type": "string",
"default": "prettier",
"enum": [
"none",
"prettier",
"prettier-tslint",
"vscode-typescript"
],
"enumDescriptions": [
"disable formatting",
"ts formatter using typescript parser from prettier",
"ts formatter from TypeScript"
],
"description": "Default formatter for <script> region"
},
"vetur.format.defaultFormatterOptions": {
"type": "object",
"properties": {
"prettier": {
"type": "object",
"description": "Global prettier config used by prettier formatter. Used by `prettier` and `prettier-eslint`.\n\nVetur will prefer a prettier config file at home directory if one exists.",
"properties": {}
},
"prettyhtml": {
"type": "object",
"description": "Options for prettyhtml",
"properties": {
"printWidth": {
"type": "number",
"default": 100,
"description": "Maximum amount of characters allowed per line"
},
"singleQuote": {
"type": "boolean",
"default": false,
"description": "Whether to use single quotes by default"
},
"wrapAttributes": {
"type": "boolean",
"default": false,
"description": "Whether to wrap attributes"
},
"sortAttributes": {
"type": "boolean",
"default": false,
"description": "Whether to sort attributes"
}
}
},
"js-beautify-html": {
"type": "object",
"description": "Options for js-beautify"
}
},
"default": {
"js-beautify-html": {
"wrap_attributes": "force-expand-multiline"
},
"prettyhtml": {
"printWidth": 100,
"singleQuote": false,
"wrapAttributes": false,
"sortAttributes": false
}
},
"description": "Options for all default formatters"
},
"vetur.format.styleInitialIndent": {
"type": "boolean",
"default": false,
"description": "Whether to have initial indent for <style> region"
},
"vetur.format.scriptInitialIndent": {
"type": "boolean",
"default": false,
"description": "Whether to have initial indent for <script> region"
},
"vetur.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and Vue Language Server."
},
"vetur.dev.vlsPath": {
"type": "string",
"description": "Path to VLS for Vetur developers. There are two ways of using it. \n\n1. Clone vuejs/vetur from GitHub, build it and point it to the ABSOLUTE path of `/server`.\n2. `yarn global add vue-language-server` and point Vetur to the installed location (`yarn global dir` + node_modules/vue-language-server)",
"scope": "machine"
},
"vetur.dev.vlsPort": {
"type": "number",
"description": "The port that VLS listens to. Can be used for attaching to the VLS Node process for debugging / profiling.",
"default": -1
},
"vetur.dev.logLevel": {
"type": "string",
"description": "Log level for VLS",
"default": "INFO",
"enum": [
"INFO",
"DEBUG"
],
"enumDescriptions": [
"Only log info messages. This is the default.",
"Log info and debug messages."
]
},
"vetur.experimental.templateInterpolationService": {
"type": "boolean",
"default": false,
"description": "Enable template interpolation service that offers diagnostics / hover / definition / references."
}
}
}
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/js-yaml": "^3.12.5",
"@types/lodash": "^4.14.157",
"@types/minimist": "^1.2.0",
"@types/mocha": "^7.0.2",
"@types/node": "^14.0.23",
"@types/shelljs": "^0.8.6",
"@types/vscode": "^1.47.0",
"glob": "^7.1.6",
"husky": "^3.1.0",
"js-yaml": "^3.14.0",
"lint-staged": "^10.1.3",
"minimist": "^1.2.5",
"mocha": "^7.2.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.1",
"shelljs": "^0.8.3",
"tslint": "^6.1.2",
"typescript": "^3.9.7",
"vscode-test": "^1.4.0"
}
}