-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
225 lines (225 loc) · 6.56 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
{
"name": "lightning-blits",
"publisher": "lightningjs",
"displayName": "Lightning Blits",
"description": "Template syntax highlighting and code completion for the Lightning Blits framework",
"version": "1.2.1",
"repository": {
"type": "git",
"url": "https://github.com/lightning-js/blits-vscode-extension.git"
},
"engines": {
"vscode": "^1.81.0"
},
"categories": [
"Other"
],
"keywords": [
"Lightning",
"LightningJS",
"Lightning 3.0",
"L3",
"L3.0",
"Blits",
"Blitz"
],
"author": "Ugur Aslan <[email protected]>",
"license": "Apache-2",
"icon": "./icon.png",
"activationEvents": [
"onLanguage:javascript",
"onLanguage:typescript"
],
"main": "./src/extension.js",
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "node ./test/runTest.js",
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.js --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"package": "vsce package",
"publish": "vsce publish"
},
"contributes": {
"languages": [
{
"id": "blits",
"extensions": [
".blits"
],
"aliases": [
"Blits",
"blits"
],
"configuration": "./languages/blits-language-configuration.json",
"icon": {
"light": "./languages/icons/blits-icon.svg",
"dark": "./languages/icons/blits-icon.svg"
}
}
],
"grammars": [
{
"injectTo": [
"source.js",
"source.ts"
],
"scopeName": "inline.custom-blits-html",
"path": "./syntaxes/embedded-html.json"
},
{
"language": "blits",
"scopeName": "source.blits",
"path": "./syntaxes/blits.json",
"embeddedLanguages": {
"meta.embedded.block.javascript": "javascript",
"meta.embedded.block.typescript": "typescript",
"source.ts": "typescript",
"source.js": "javascript"
}
},
{
"scopeName": "markdown.blits.codeblock",
"path": "./syntaxes/blits-markdown.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.blits": "blits"
}
}
],
"capabilities": {
"hoverProvider": "true"
},
"keybindings": [
{
"key": "ctrl+/",
"mac": "cmd+/",
"command": "blits-vscode.commentCommand",
"when": "editorTextFocus && (editorLangId == 'javascript' || editorLangId == 'typescript' || editorLangId == 'blits')"
}
],
"configuration": {
"title": "Blits Extension Settings",
"properties": {
"blits.autoFormat": {
"type": "boolean",
"default": true,
"description": "Automatically format the document on save."
},
"blits.format.printWidth": {
"type": "number",
"default": 120,
"description": "The line length that the printer will wrap on",
"minimum": 20,
"maximum": 1000
},
"blits.format.tabWidth": {
"type": "number",
"default": 2,
"description": "Indentation size.",
"minimum": 0,
"maximum": 8
},
"blits.format.useTabs": {
"type": "boolean",
"default": false,
"description": "Indent lines with tabs instead of spaces."
},
"blits.format.semi": {
"type": "boolean",
"default": false,
"description": "Print semicolons at the ends of statements."
},
"blits.format.singleQuote": {
"type": "boolean",
"default": true,
"description": "Use single quotes instead of double quotes."
},
"blits.format.quoteProps": {
"type": "string",
"default": "as-needed",
"enum": [
"as-needed",
"consistent",
"preserve"
],
"enumDescriptions": [
"Only add quotes around object properties where required",
"If at least one property in an object requires quotes, quote all properties",
"Respect the input use of quotes in object properties"
],
"description": "Change when properties in objects are quoted."
},
"blits.format.trailingComma": {
"type": "string",
"default": "all",
"enum": [
"all",
"es5",
"none"
],
"enumDescriptions": [
"Trailing commas wherever possible",
"Trailing commas where valid in ES5",
"No trailing commas"
],
"description": "Print trailing commas wherever possible in multi-line comma-separated syntactic structures."
},
"blits.format.bracketSpacing": {
"type": "boolean",
"default": true,
"description": "Print spaces between brackets in object literals."
},
"blits.format.bracketSameLine": {
"type": "boolean",
"default": false,
"description": "Put the > of a multi-line tag at the end of the last line instead of being alone on the next line."
},
"blits.format.arrowParens": {
"type": "string",
"default": "always",
"enum": [
"always",
"avoid"
],
"enumDescriptions": [
"Always include parentheses",
"Omit parentheses when possible"
],
"description": "Include parentheses around a sole arrow function parameter."
},
"blits.format.singleAttributePerLine": {
"type": "boolean",
"default": false,
"description": "Enforce single attribute per line in templates."
}
}
}
},
"dependencies": {
"@babel/traverse": "^7.23.2",
"fs-extra": "^11.1.1",
"prettier": "^2.8.8",
"typescript": "^5.6.2"
},
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/parser": "^7.26.2",
"@babel/preset-typescript": "^7.26.0",
"@types/mocha": "^10.0.1",
"@types/node": "^16.18.108",
"@types/vscode": "^1.81.0",
"@vscode/test-electron": "^2.3.4",
"@vscode/vsce": "^2.32.0",
"esbuild": "^0.19.2",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"glob": "^10.3.3",
"mocha": "^10.7.3"
}
}