forked from slint-ui/slint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
237 lines (237 loc) · 7.79 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
{
"name": "slint",
"displayName": "Slint",
"description": "Slint language support, featuring auto-completion, go-to definition, refactoring, syntax coloration, and a live preview and editing of Slint GUIs. Slint is a lightweight cross-platform native GUI framework for Rust, C++, JavaScript, and Python.",
"keywords": [
"Slint",
"GUI",
"UI",
"HMI",
"Qt/QML Alternative",
"live preview",
"drag-and-drop editor"
],
"version": "1.9.0",
"publisher": "Slint",
"icon": "extension-logo.png",
"license": "GPL-3.0",
"repository": {
"type": "git",
"url": "https://github.com/slint-ui/slint"
},
"engines": {
"vscode": "^1.82.0"
},
"categories": [
"Programming Languages"
],
"qna": "https://github.com/slint-ui/slint/discussions/categories/q-a",
"activationEvents": [
"onLanguage:rust",
"onWebviewPanel:slint-preview",
"workspaceContains:{**/CMakeLists.txt,**/Cargo.toml,**/*.slint}"
],
"main": "./out/extension.js",
"browser": "./out/browser.js",
"contributes": {
"languages": [
{
"id": "slint",
"aliases": [
"Slint"
],
"extensions": [
".slint",
".60"
],
"configuration": "language-configuration.json",
"icon": {
"light": "slint-file-icon.svg",
"dark": "slint-file-icon.svg"
}
}
],
"grammars": [
{
"language": "slint",
"scopeName": "source.slint",
"path": "./slint.tmLanguage.json"
},
{
"injectTo": [
"source.rust"
],
"scopeName": "source.rust.slint",
"path": "./slint.injection.json",
"embeddedLanguages": {
"source.slint": "slint"
}
},
{
"scopeName": "markdown.slint.codeblock",
"path": "./slint.markdown-injection.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.slint": "slint"
}
}
],
"commands": [
{
"command": "slint.showPreview",
"title": "Show Preview",
"category": "Slint",
"icon": "$(preview)"
},
{
"command": "slint.reload",
"title": "Restart server",
"category": "Slint",
"icon": "$(debug-restart)"
},
{
"command": "slint.newProject",
"title": "Create New Project from Template",
"category": "Slint"
}
],
"menus": {
"commandPalette": [
{
"command": "slint.showPreview",
"when": "editorLangId == slint"
},
{
"command": "slint.reload"
},
{
"command": "slint.newProject",
"when": "!isWeb"
}
]
},
"configuration": {
"type": "object",
"title": "Slint",
"properties": {
"slint.lsp-args": {
"type": "array",
"items": {
"type": "string"
},
"description": "The command line arguments passed to the Slint LSP server"
},
"slint.preview.hide_ui": {
"type": "boolean",
"default": false,
"description": "Hide the toolbar of the preview"
},
"slint.preview.style": {
"type": "string",
"description": "The default style to be used for the preview (eg: 'fluent', 'material', or 'native')"
},
"slint.preview.providedByEditor": {
"type": "boolean",
"default": false,
"description": "Instead of letting the Language Server display the preview in a native window, show the preview in an editor tab using web-assembly. This has no effect for the web extension where the preview is always provided by the editor."
},
"slint.includePaths": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of paths in which the `import` statement and `@image-url` are looked up"
},
"slint.libraryPaths": {
"type": "object",
"patternProperties": {
"^[a-zA-Z][a-zA-Z0-9-_]*$": {
"type": "string"
}
},
"description": "Map of paths in which the `import` statement for `@library` imports are looked up"
}
}
},
"walkthroughs": [
{
"id": "slint.welcomeWalkthrough",
"title": "Getting Started with Slint",
"description": "Dive into VSCode's rich Slint development experience",
"steps": [
{
"id": "create_slint_file",
"title": "Create a .slint File",
"description": "[Open](command:toSide:workbench.action.files.openFile) or [create](command:toSide:workbench.action.files.newUntitledFile?%7B%22languageId%22%3A%22slint%22%7D) a `.slint` file. Be sure to save it with the \".slint\" extension, such as \"helloworld.slint\". \n[Create a .slint File](command:toSide:workbench.action.files.newUntitledFile?%7B%22languageId%22%3A%22slint%22%7D)",
"media": {
"markdown": "static/walkthroughs/welcome/create_slint_file.md"
}
},
{
"id": "live_preview",
"title": "Live Preview your UI",
"description": "Click on $(play) Show Preview above any component in your editor showing a .slint file to a preview of your user interface. Keep the preview open: It updates as you type.",
"media": {
"image": "static/walkthroughs/welcome/show_preview.png",
"altText": "live preview in action"
},
"completionEvents": [
"onCommand:slint.showPreview"
]
},
{
"id": "get_help",
"title": "Learn More",
"description": "Well done! You've completed Getting Started with Slint.",
"media": {
"markdown": "static/walkthroughs/welcome/get_help.md"
}
}
]
}
]
},
"files": [
"bin/slint-lsp-*"
],
"scripts": {
"vscode:prepublish": "pnpm build:wasm_lsp-release && pnpm compile-production && shx echo \"GPL-3.0-only OR LicenseRef-Slint-Software-3.0\" > LICENSE.txt",
"build:lsp": "cargo build -p slint-lsp",
"build:lsp-release": "cargo build --release -p slint-lsp",
"build:wasm_lsp": "shx pwd | xargs -I {} wasm-pack build --dev --target web --no-pack ../../tools/lsp --out-dir {}/out -- --no-default-features --features backend-winit,renderer-femtovg,preview",
"build:wasm_lsp-release": "shx pwd | xargs -I {} wasm-pack build --release --target web --no-pack ../../tools/lsp --out-dir {}/out -- --no-default-features --features backend-winit,renderer-femtovg,preview",
"compile": "node ./esbuild.js",
"compile-production": "node ./esbuild.js --production",
"local-package": "shx mkdir -p bin && shx cp ../../target/debug/slint-lsp* bin/ && pnpm dlx vsce package --no-dependencies",
"watch": "tsc -watch -p ./",
"pretest": "pnpm compile && pnpm check",
"check": "biome check",
"format": "biome format",
"format:fix": "biome format --write",
"lint": "biome lint",
"lint:fix": "biome lint --fix",
"test_grammar": "vscode-tmgrammar-test \"tests/grammar/*.slint\"",
"type-check": "tsc --noEmit",
"test": "node ./out/test/runTest.js",
"clean": "shx rm -rf out bin LICENSE.txt slint-*.vsix"
},
"dependencies": {
"fs-extra": "11.2.0",
"simple-git": "3.27.0",
"vscode-languageclient": "8.1.0",
"vscode-languageserver": "8.1.0"
},
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@rauschma/env-var": "1.0.1",
"@types/fs-extra": "11.0.4",
"@types/node": "18.11.9",
"@types/vscode": "1.82.0",
"esbuild": "0.24.0",
"shx": "0.3.4",
"typescript": "5.6.2",
"vscode-tmgrammar-test": "0.1.3"
}
}