-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
112 lines (112 loc) · 2.88 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
{
"name": "vue-utils",
"displayName": "Vue Utils",
"description": "Utility commands for Vue",
"version": "0.3.0",
"publisher": "gertqin",
"engines": {
"vscode": "^1.22.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:extension.switchBetweenVueAndTsFile",
"onCommand:extension.createVueComponent",
"onCommand:extension.createVueComponentFromExplorer"
],
"main": "./out/extension",
"contributes": {
"commands": [
{
"command": "extension.switchBetweenVueAndTsFile",
"title": "Switch between .vue and .vue.ts file"
},
{
"command": "extension.createVueComponent",
"title": "Create a new vue component"
},
{
"command": "extension.createVueComponentFromExplorer",
"title": "New Vue Component"
}
],
"keybindings": [
{
"command": "extension.switchBetweenVueAndTsFile",
"key": "alt+;"
},
{
"command": "extension.createVueComponent",
"key": "alt+n",
"when": "editorTextFocus"
}
],
"menus": {
"explorer/context": [
{
"command": "extension.createVueComponentFromExplorer"
}
]
},
"configuration": {
"title": "Vue Utils",
"properties": {
"vueUtils.tsFileExtension": {
"type": "string",
"default": ".ts",
"description": "Extension of ts files"
},
"vueUtils.vueTemplate": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"<template>",
"</template>",
"",
"<script lang=\"ts\" src=\"./{COMPONENT}\">",
"</script>",
"",
"<style scoped>",
"</style>",
""
],
"description": "Template for .vue file. {COMPONENT} will be replaced by component name with tsExtension."
},
"vueUtils.tsTemplate": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"import Vue from \"vue\";",
"import Component from \"vue-class-component\";",
"",
"@Component",
"export default class {COMPONENT} extends Vue {",
"",
"}",
""
],
"description": "Template for .ts file. {COMPONENT} will be replaced by component name."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "npm run compile && node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"typescript": "3.7.4",
"vscode": "1.1.36",
"tslint": "^5.20.1",
"@types/node": "^10.11.7",
"@types/mocha": "^5.2.7"
}
}