-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
366 lines (366 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
{
"name": "twilight-vscode-extension",
"version": "1.0.10",
"description": "The intelligent tooling to use Salla's Twilight Theme Engine in your VSCode editor.",
"author": "Salla App (https://github.com/SallaApp)",
"displayName": "Twilight Themes AutoComplete",
"publisher": "Salla",
"license": "MIT",
"homepage": "https://github.com/SallaApp/twilight-vscode-extension",
"bugs": {
"url": "https://github.com/SallaApp/twilight-vscode-extension/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/SallaApp/twilight-vscode-extension.git"
},
"icon": "images/logo.png",
"engines": {
"vscode": "^1.68.0"
},
"categories": [
"Programming Languages",
"Snippets",
"Other"
],
"keywords": [
"php",
"twig",
"snippets",
"salla"
],
"activationEvents": [
"*"
],
"main": "dist/extension",
"contributes": {
"html": {
"customData": [
"./data/SallaJson/web.components/web-components.html-data.json"
]
},
"languages": [
{
"id": "html",
"aliases": [
"HTML",
"twig"
],
"extensions": [
".twig",
".html",
".html.twig"
],
"configuration": "./data/Twig/languages/twig.configuration.json"
}
],
"grammars": [
{
"language": "html",
"scopeName": "text.html.twig",
"path": "./data/Twig/syntaxes/twig.tmLanguage",
"embeddedLanguages": {
"source.json": "json",
"source.css": "css",
"source.css.scss": "scss",
"source.js": "javascript",
"source.ts": "typescript"
}
}
],
"snippets": [
{
"language": "html",
"path": "./data/SallaJson/salla.snippets.autogenerated.json"
},
{
"language": "html",
"path": "data/SallaJson/hover/salla.functions.json"
},
{
"language": "html",
"path": "./data/Twig/snippets/snippets.json"
}
],
"configuration": {
"type": "object",
"title": "Twig Language",
"properties": {
"Salla.twilight-vscode-extension.hover": {
"type": "boolean",
"default": true,
"description": "Whether to enable/disable Twig hover."
},
"Salla.twilight-vscode-extension.braceLine": {
"type": "boolean",
"default": true,
"description": "If true an empty line will be inserted after opening curly braces and before closing curly braces."
},
"Salla.twilight-vscode-extension.bracePadding": {
"type": "boolean",
"default": true,
"description": "Inserts a space after the start of a container and before the end of the container if the contents of that container are not indented; such as: conditions, function arguments, and escaped sequences of template strings."
},
"Salla.twilight-vscode-extension.braces": {
"type": "boolean",
"default": true,
"description": "Determines if opening curly braces will exist on the same line as their condition or be forced onto a new line."
},
"Salla.twilight-vscode-extension.commentLine": {
"type": "boolean",
"default": true,
"description": "If a blank new line should be forced above comments."
},
"Salla.twilight-vscode-extension.comments": {
"type": "boolean",
"default": true,
"description": "This will determine whether comments should always start at position 0 of each line or if comments should be indented according to the code."
},
"Salla.twilight-vscode-extension.compressedCss": {
"type": "boolean",
"default": true,
"description": "If CSS should be beautified in a style where the properties and values are minifed for faster reading of selectors."
},
"Salla.twilight-vscode-extension.correct": {
"type": "boolean",
"default": true,
"description": "Automatically correct some sloppiness in code."
},
"Salla.twilight-vscode-extension.cssInsertLines": {
"type": "boolean",
"default": true,
"description": "Inserts new line characters between every CSS code block."
},
"Salla.twilight-vscode-extension.elseLine": {
"type": "boolean",
"default": true,
"description": "If else_line is true then the keyword 'else' is forced onto a new line."
},
"Salla.twilight-vscode-extension.endComma": {
"type": "string",
"enum": [
"always",
"never",
"none"
],
"default": true,
"description": "If there should be a trailing comma in arrays and objects. Value multiline only applies to modes beautify and diff."
},
"Salla.twilight-vscode-extension.forceAttribute": {
"type": "boolean",
"default": true,
"description": "If all markup attributes should be indented each onto their own line."
},
"Salla.twilight-vscode-extension.forceIndent": {
"type": "boolean",
"default": true,
"description": "Will force indentation upon all content and tags without regard for the creation of new text nodes."
},
"Salla.twilight-vscode-extension.formatArray": {
"type": "string",
"enum": [
"default",
"indent",
"inline"
],
"default": "default",
"description": "Determines if all array indexes should be indented, never indented, or left to the default."
},
"Salla.twilight-vscode-extension.formatObject": {
"type": "string",
"enum": [
"default",
"indent",
"inline"
],
"default": "default",
"description": "Determines if all object keys should be indented, never indented, or left to the default."
},
"Salla.twilight-vscode-extension.functionName": {
"type": "boolean",
"default": true,
"description": "If a space should follow a JavaScript function name."
},
"Salla.twilight-vscode-extension.indentStyle": {
"type": "string",
"enum": [
"space",
"tab"
],
"default": "tab",
"description": "Choose to indent using tabs or spaces."
},
"Salla.twilight-vscode-extension.indentLevel": {
"type": "integer",
"default": 0,
"description": "How much indentation padding should be applied to beautification? This option is internally used for code that requires switching between libraries."
},
"Salla.twilight-vscode-extension.tabSize": {
"type": "integer",
"default": 0,
"description": "0 will default to the editor's tab size. Stores the number of 'inchar' values to comprise a single indentation."
},
"Salla.twilight-vscode-extension.methodChain": {
"type": "integer",
"default": 0,
"description": "When to break consecutively chained methods and properties onto separate lines. A negative value disables this option. A value of 0 ensures method chains are never broken."
},
"Salla.twilight-vscode-extension.neverFlatten": {
"type": "boolean",
"default": true,
"description": "If destructured lists in script should never be flattend."
},
"Salla.twilight-vscode-extension.newLine": {
"type": "boolean",
"default": true,
"description": "Insert an empty line at the end of output."
},
"Salla.twilight-vscode-extension.noCaseIndent": {
"type": "boolean",
"default": true,
"description": "If a case statement should receive the same indentation as the containing switch block."
},
"Salla.twilight-vscode-extension.noLeadZero": {
"type": "boolean",
"default": true,
"description": "Whether leading 0s in CSS values immediately preceeding a decimal should be removed or prevented."
},
"Salla.twilight-vscode-extension.objectSort": {
"type": "boolean",
"default": true,
"description": "Sorts markup attributes and properties by key name in script and style."
},
"Salla.twilight-vscode-extension.preserve": {
"type": "integer",
"default": 2,
"description": "The maximum number of consecutive empty lines to retain."
},
"Salla.twilight-vscode-extension.preserveComment": {
"type": "boolean",
"default": true,
"description": "Prevent comment reformatting due to option wrap."
},
"Salla.twilight-vscode-extension.quoteConvert": {
"type": "string",
"enum": [
"double",
"none",
"single"
],
"default": "none",
"description": "If the quotes of script strings or markup attributes should be converted to single quotes or double quotes."
},
"Salla.twilight-vscode-extension.space": {
"type": "boolean",
"default": true,
"description": "Inserts a space following the function keyword for anonymous functions."
},
"Salla.twilight-vscode-extension.spaceClose": {
"type": "boolean",
"default": true,
"description": "Markup self-closing tags end will end with ' />' instead of '/>'."
},
"Salla.twilight-vscode-extension.tagMerge": {
"type": "boolean",
"default": true,
"description": "Allows immediately adjacement start and end markup tags of the same name to be combined into a single self-closing tag."
},
"Salla.twilight-vscode-extension.tagSort": {
"type": "boolean",
"default": true,
"description": "Sort child items of each respective markup parent element."
},
"Salla.twilight-vscode-extension.ternaryLine": {
"type": "boolean",
"default": true,
"description": "If ternary operators in JavaScript ? and : should remain on the same line."
},
"Salla.twilight-vscode-extension.unformatted": {
"type": "boolean",
"default": true,
"description": "If markup tags should have their insides preserved. This option is only available to markup and does not support child tokens that require a different lexer."
},
"Salla.twilight-vscode-extension.variableList": {
"type": "string",
"enum": [
"each",
"list",
"none"
],
"default": "none",
"description": "If consecutive JavaScript variables should be merged into a comma separated list or if variables in a list should be separated."
},
"Salla.twilight-vscode-extension.vertical": {
"type": "boolean",
"default": true,
"description": "If lists of assignments and properties should be vertically aligned. This option is not used with the markup lexer."
},
"Salla.twilight-vscode-extension.wrap": {
"type": "integer",
"default": 0,
"description": "Character width limit before applying word wrap. A 0 value disables this option. A negative value concatenates script strings."
}
}
}
},
"capabilities": {
"hoverProvider": "true",
"completionProvider": {
"triggerCharacters": [
"S",
"s",
".",
":",
"=",
",",
";",
"*",
"&",
"|",
"!",
"?",
"<",
">",
"{",
"}",
"[",
"]",
"(",
")",
"\"",
"'",
"\\",
"/"
]
},
"documentFormattingProvider": "true",
"documentRangeFormattingProvider": "true",
"textDocument/comment": {
"supported": "true",
"defaultValue": "true"
}
},
"scripts": {
"snippets-generate": "node ./scripts/snippets.autogenerate.js",
"vscode:prepublish": "yarn run build",
"package": "vsce package --yarn",
"publish": "vsce publish --allow-star-activation ",
"build": "yarn run snippets-generate && rollup -c"
},
"devDependencies": {
"@types/mocha": "^9.1.1",
"@types/node": "^20.5.6",
"eslint": "^8.18.0",
"eslint-config-prettier": "^9.0.0",
"typescript": "^5.2.2",
"vscode": "^1.1.37"
},
"dependencies": {
"rollup": "^2.74.1",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-image-assets": "^1.0.0",
"rollup-plugin-image-files": "^1.4.2",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-terser": "^7.0.2"
}
}