-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
243 lines (243 loc) · 8.32 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
{
"name": "vscode-module-templates",
"displayName": "Module Templates",
"publisher": "asbjornh",
"icon": "icon.png",
"version": "1.9.4",
"description": "A VSCode extension for creating file/folder templates for new modules",
"scripts": {
"vscode:prepublish": "webpack",
"build": "webpack"
},
"dependencies": {
"change-case": "^4.1.1",
"fs-extra": "^8.1.0",
"handlebars": "^4.7.6",
"untildify": "^4.0.0"
},
"devDependencies": {
"@types/fs-extra": "^9.0.1",
"@types/handlebars": "^4.1.0",
"@types/node": "^13.1.6",
"@types/vscode": "^1.41.0",
"ts-loader": "^6.2.1",
"typescript": "^4.3.5",
"webpack": "^4.41.5",
"webpack-cli": "^3.3.10",
"webpack-event-plugin": "^1.1.1"
},
"repository": {
"type": "git",
"url": "https://github.com/asbjornh/vscode-module-templates.git"
},
"categories": [
"Snippets"
],
"keywords": [
"module",
"template",
"react",
"vue",
"angular"
],
"author": "Asbjørn Hegdahl",
"license": "MIT",
"bugs": {
"url": "https://github.com/asbjornh/vscode-module-templates/issues"
},
"homepage": "https://github.com/asbjornh/vscode-module-templates#readme",
"engines": {
"vscode": "^1.41.1"
},
"main": "dist/extension.js",
"activationEvents": [
"onCommand:extension.newModuleFromTemplate"
],
"contributes": {
"commands": [
{
"command": "extension.newModuleFromTemplate",
"title": "New From Template"
}
],
"menus": {
"explorer/context": [
{
"command": "extension.newModuleFromTemplate",
"group": "navigation@10"
}
]
},
"jsonValidation": [
{
"fileMatch": "*.module-templates.json",
"url": "./dist/templates.schema.json"
}
],
"configuration": {
"type": "object",
"title": "Module Templates",
"properties": {
"module-templates.engine": {
"scope": "resource",
"type": "string",
"description": "This option only has one valid value because the previously supported 'legacy' option is deprecated",
"enum": [
"handlebars"
]
},
"module-templates.handlebarsConfig": {
"scope": "resource",
"type": "string",
"description": "Path to a javascript file that exports a function or an object"
},
"module-templates.templateFiles": {
"scope": "resource",
"type": "array",
"description": "A list of paths to files to load additional templates from. Paths can be absolute, relative to your home directory ('~') or relative to this file",
"items": {
"type": "string"
}
},
"module-templates.templates": {
"scope": "resource",
"default": {},
"description": "A dictionary of templates. See readme for how to create a template.",
"oneOf": [
{
"deprecationMessage": "Using an array for templates is deprecated and support will be removed in a future version. Use an object instead (see the documentation).",
"type": "array",
"description": "A list of templates. See readme for how to create a template.",
"items": {
"type": "object"
}
},
{
"type": "object",
"properties": {},
"additionalProperties": {
"type": "object",
"additionalProperties": false,
"properties": {
"displayName": {
"type": "string",
"description": "The name of the template shown in the template selection list"
},
"defaultPath": {
"type": "string",
"description": "Where to put module when the path is unknown, such as when running from the command palette. The path should be relative to the workspace root."
},
"extends": {
"type": "array",
"description": "A list of template IDs to inherit properties from",
"items": {
"type": "string"
}
},
"folder": {
"type": "string",
"description": "Optional folder name. If empty, no folder is created. You can use template syntax here."
},
"questions": {
"type": "object",
"description": "Used to show input boxes in order to supply data to the template",
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"additionalProperties": false,
"required": [
"displayName"
],
"properties": {
"defaultValue": {
"type": "string"
},
"displayName": {
"type": "string"
}
}
},
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"displayName"
],
"properties": {
"displayName": {
"type": "string"
},
"value": {
"type": [
"array",
"boolean",
"number",
"object",
"string"
]
}
}
}
}
]
}
},
"files": {
"type": "array",
"description": "The files you want to be written for this template",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"name"
],
"oneOf": [
{
"required": [
"content"
]
},
{
"required": [
"contentFile"
]
}
],
"properties": {
"name": {
"type": "string",
"description": "The name of the file (with extension). You can use template syntax here."
},
"open": {
"type": "boolean",
"description": "Whether to open this file automatically or not after creation"
},
"content": {
"type": "array",
"description": "The content of the file as a list of strings",
"items": {
"type": "string"
}
},
"contentFile": {
"type": "string",
"description": "Path to a file containing the content template for this file template. The path can be absolute, relative to your home directory ('~') or relative to this file"
}
}
}
}
}
}
}
]
}
}
}
}
}